Skip to content

Pin GitHub Actions to commit SHAs - #12

Merged
dwoz merged 2 commits into
mainfrom
pin-action-versions
Nov 21, 2026
Merged

dwoz merged 2 commits into
mainfrom
pin-action-versions

Conversation

@dwoz

@dwoz dwoz commented Nov 21, 2026

Copy link
Copy Markdown
Contributor

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 / @v3 tags (still mutable upstream) and two spots pinned to actions/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

Action Tag SHA
actions/checkout v4 11d5960a326750d5838078e36cf38b85af677262
actions/setup-python v5 a26af69be951a213d495a4c3e4e4022e16d87065
actions/download-artifact v4 d3f86a106a0bac45b974a628896c90dbdf5c8093
actions/upload-artifact v4 ea165f8d65b6e75b540449e92b4886f43607fa02
dorny/paths-filter v3 0e4a8c6effa4802afeda77dc8d303f8176d7dfad
technote-space/workflow-conclusion-action v3 45ce8e0eb155657ab8ccf346ade734257fd196a5
pypa/gh-action-pypi-publish release/v1 7245906fb61fa33a13554f9d5fb856fe61758086
softprops/action-gh-release v2 3bb12739c298aeb8a4eeaf626c5b8d85266b0e65

Also bumped

test-package-action.yml previously used actions/checkout@v3 and actions/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.
  • CI runs on this PR produce the same green matrix as the 0.2.0 release.

dwoz added 2 commits November 21, 2026 02:08
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.
@dwoz
dwoz merged commit 07ffac8 into main Nov 21, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant