Repository navigation
Pin GitHub Actions to commit SHAs - #12
Merged
Merged
Conversation
Every external action now references a 40-char commit SHA with the version tag in a trailing comment, so a future upstream retag or compromise of the mutable tag can't silently change what runs in CI. Previously several workflows pinned to `@v4` / `@v3` tags (still mutable) and a couple pinned to `actions/checkout@master` (worst of both: unreviewed and HEAD-tracking). Included actions: - actions/checkout v4 - actions/setup-python v5 - actions/download-artifact v4 - actions/upload-artifact v4 - dorny/paths-filter v3 - technote-space/workflow-conclusion v3 - pypa/gh-action-pypi-publish release/v1 - softprops/action-gh-release v2 Also bumps test-package-action.yml's checkout/setup-python from the older v3/v4 tags to the same v4/v5 the other workflows use, so the whole repo shares one version floor. Local reusable workflow calls (./.github/workflows/*.yml) are unchanged -- those are in-repo and don't need pinning.
…ction GitHub forced Node.js 20 actions onto Node.js 24 as of the Sept 2025 runner deprecation, logging a warning on every job. Bump each pinned action to the next major that natively ships Node 24: - actions/checkout v4 -> v5 - actions/setup-python v5 -> v6 - actions/download-artifact v4 -> v5 - actions/upload-artifact v4 -> v5 - dorny/paths-filter v3 -> v4 - softprops/action-gh-release v2 -> v3 technote-space/workflow-conclusion-action has not released since 2022 and still targets node16; replace the one call site with an inline 'needs.*.result' rollup in bash. The action only ever rolled up those results into one conclusion, so this drops a dead-upstream dependency for free. Also drop the deprecated `long-description-content-type` setup.cfg key in base ppbt + both sibling packages in favour of the underscore-form `long_description_content_type` setuptools wants.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Every external action in
.github/workflows/now references a 40-char commit SHA with the version tag in a trailing comment. Previously several workflows pinned to@v4/@v3tags (still mutable upstream) and two spots pinned toactions/checkout@master(worst of both — unreviewed and HEAD-tracking). With SHA pinning, a retag, deleted tag, or compromise of the mutable ref can't silently change what runs in CI.Pinned actions
actions/checkout11d5960a326750d5838078e36cf38b85af677262actions/setup-pythona26af69be951a213d495a4c3e4e4022e16d87065actions/download-artifactd3f86a106a0bac45b974a628896c90dbdf5c8093actions/upload-artifactea165f8d65b6e75b540449e92b4886f43607fa02dorny/paths-filter0e4a8c6effa4802afeda77dc8d303f8176d7dfadtechnote-space/workflow-conclusion-action45ce8e0eb155657ab8ccf346ade734257fd196a5pypa/gh-action-pypi-publish7245906fb61fa33a13554f9d5fb856fe61758086softprops/action-gh-release3bb12739c298aeb8a4eeaf626c5b8d85266b0e65Also bumped
test-package-action.ymlpreviously usedactions/checkout@v3andactions/setup-python@v4. Bumped to v4/v5 to match the rest of the repo so there's one version floor.Local reusable-workflow calls (
./.github/workflows/*.yml) are unchanged — those are in-repo and don't need pinning.Test plan
grep -rn 'uses:' .github/workflows/audit: every external action has a 40-char SHA; local calls preserved.