ci: pin GitHub Actions to full commit SHAs#12
Merged
Conversation
Replace tag-pinned `uses:` references with 40-char commit SHAs, with a trailing `# vX.Y.Z` comment so the intended version stays human-readable. Supply-chain hardening; lands before Dependabot is enabled so subsequent updates arrive against a SHA-pinned baseline.
Replace tag-pinned `uses:` references (including the floating `@release/v1` on pypa/gh-action-pypi-publish) with 40-char commit SHAs and `# vX.Y.Z` trailing comments. Same rationale as the companion ci.yml change: supply-chain hardening ahead of the Dependabot rollout.
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
Pin every third-party action reference in
.github/workflows/ci.ymland.github/workflows/publish.ymlto a full 40-character commit SHA, with a trailing# vX.Y.Zcomment so the intended release stays human-readable. This is the recommended supply-chain posture for GitHub Actions.Pins
actions/checkoutv6.0.2de0fac2e4500dabe0009e67214ff5f5447ce83ddastral-sh/setup-uvv8.0.0cec208311dfd045dd5311c1add060b2062131d57actions/upload-artifactv4.6.2ea165f8d65b6e75b540449e92b4886f43607fa02actions/download-artifactv4.3.0d3f86a106a0bac45b974a628896c90dbdf5c8093pypa/gh-action-pypi-publishv1.14.0cef221092ed1bacb1cc03d23a2d87d1d172e277bThe floating
@release/v1reference onpypa/gh-action-pypi-publishis replaced with the most recent stablev1.Y.Ztag, whose annotated tag object is GPG-signed by the PyPA maintainer.For the
v4-series artifact actions, the previous@v4floating tag currently resolves tov4.6.2(upload) andv4.3.0(download) respectively — behavior is unchanged.