Skip to content

ci: pin GitHub Actions to full commit SHAs#12

Merged
jcardozo-eth merged 2 commits into
mainfrom
ci/pin-actions-by-sha
Apr 15, 2026
Merged

ci: pin GitHub Actions to full commit SHAs#12
jcardozo-eth merged 2 commits into
mainfrom
ci/pin-actions-by-sha

Conversation

@jcardozo-eth

Copy link
Copy Markdown
Member

Summary

Pin every third-party action reference in .github/workflows/ci.yml and .github/workflows/publish.yml to a full 40-character commit SHA, with a trailing # vX.Y.Z comment so the intended release stays human-readable. This is the recommended supply-chain posture for GitHub Actions.

Pins

Action Tag Commit SHA
actions/checkout v6.0.2 de0fac2e4500dabe0009e67214ff5f5447ce83dd
astral-sh/setup-uv v8.0.0 cec208311dfd045dd5311c1add060b2062131d57
actions/upload-artifact v4.6.2 ea165f8d65b6e75b540449e92b4886f43607fa02
actions/download-artifact v4.3.0 d3f86a106a0bac45b974a628896c90dbdf5c8093
pypa/gh-action-pypi-publish v1.14.0 cef221092ed1bacb1cc03d23a2d87d1d172e277b

The floating @release/v1 reference on pypa/gh-action-pypi-publish is replaced with the most recent stable v1.Y.Z tag, whose annotated tag object is GPG-signed by the PyPA maintainer.

For the v4-series artifact actions, the previous @v4 floating tag currently resolves to v4.6.2 (upload) and v4.3.0 (download) respectively — behavior is unchanged.

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.
@jcardozo-eth jcardozo-eth merged commit baa3b76 into main Apr 15, 2026
10 checks passed
@jcardozo-eth jcardozo-eth deleted the ci/pin-actions-by-sha branch April 15, 2026 23:25
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