-
Notifications
You must be signed in to change notification settings - Fork 0
chore(ci): pin all GitHub Actions to commit SHAs + add concurrency to audit.yml #35
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
Changes from all commits
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 |
|---|---|---|
|
|
@@ -23,13 +23,13 @@ jobs: | |
| esac | ||
|
|
||
| - name: Checkout release tag | ||
| uses: actions/checkout@v6 | ||
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| ref: ${{ inputs.ref }} | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up Python | ||
| uses: actions/setup-python@v6 | ||
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | ||
| with: | ||
| python-version: "3.11" | ||
|
|
||
|
|
@@ -43,7 +43,7 @@ jobs: | |
| run: python -m twine check dist/* | ||
|
|
||
| - name: Upload distributions | ||
| uses: actions/upload-artifact@v7 | ||
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| with: | ||
| name: python-distributions | ||
| path: dist/* | ||
|
|
@@ -60,10 +60,10 @@ jobs: | |
|
|
||
| steps: | ||
| - name: Download distributions | ||
| uses: actions/download-artifact@v7 | ||
| uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0 | ||
| with: | ||
| name: python-distributions | ||
| path: dist | ||
|
|
||
| - name: Publish package distributions to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 | ||
|
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.
With this action reference now pinned, Useful? React with 👍 / 👎. |
||
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.
Pinning CodeQL to a SHA leaves
tests/test_distribution_policy.pyexpectinggithub/codeql-action/init@v4andgithub/codeql-action/analyze@v4; because the CI workflow runs the full pytest suite, this makes the pipeline fail on this commit. I verified the failure withpython -m pytest tests/test_distribution_policy.py -q; please update the distribution policy test to validate the pinned CodeQL refs or their version comments.Useful? React with 👍 / 👎.