-
Notifications
You must be signed in to change notification settings - Fork 913
CI: Harden GHA configuration #166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from 4 commits
1328b1c
08b5a55
042eff8
25791eb
bc88c6d
c9e8440
b7c2b53
75491ef
f25b7af
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
pre-commit: | ||
permissions: | ||
contents: read | ||
|
||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not pinned. |
||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-python@v5 | ||
- uses: pre-commit/[email protected] | ||
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 | ||
build: | ||
runs-on: ubuntu-20.04 | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-python@v5 | ||
Comment on lines
22
to
25
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Neither is pinned. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. none of the wave of PRs pin the actions/XYZ to a sha. |
||
with: | ||
python-version: "3.10" | ||
|
@@ -70,11 +79,13 @@ jobs: | |
- name: Output artifacts URL | ||
run: | | ||
echo 'Artifact URL:' \ | ||
'${{ steps.diffs-artifact-upload.outputs.artifact-url }}' \ | ||
'${STEPS_DIFFS_ARTIFACT_UPLOAD_OUTPUTS_ARTIFACT_URL}' \ | ||
>> $GITHUB_STEP_SUMMARY | ||
env: | ||
STEPS_DIFFS_ARTIFACT_UPLOAD_OUTPUTS_ARTIFACT_URL: ${{ steps.diffs-artifact-upload.outputs.artifact-url }} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need this step at all any more; the build summary and artifacts are both displayed on the Summary page, so this is redundant. |
||
- name: Publish cheatsheets and handouts | ||
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }} | ||
uses: peaceiris/actions-gh-pages@v4 | ||
uses: peaceiris/actions-gh-pages@4f9cc6602d3f66b9c108549d475ec49e8ef4d45e # v4 | ||
tacaswell marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: ./docs/_build/html/ | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does dependabot not suggest updating this? Isn't it deprecated?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think dependabot suggest updating images?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, it's probably why the CI isn't running, then.