ci: pin third-party Actions to commit SHAs#131
Merged
Connorrmcd6 merged 1 commit intoJun 15, 2026
Conversation
Pin every third-party Action to a full-length commit SHA with a version comment (Dependabot/Renovate keep these current). A mutable tag like @v6 lets the tag owner — or anyone who compromises their account — swap the code an Action runs, and these run in jobs holding contents: write (release upload) and id-token: write (npm provenance). SHAs make the supply chain reproducible and reviewable. actions/checkout@v6 -> df4cb1c... # v6 actions/setup-node@v6 -> 48b55a0... # v6 softprops/action-gh-release@v3 -> b430933... # v3 peter-evans/repository-dispatch@v4 -> 28959ce... # v4 rustsec/audit-check@v2 -> 69366f3... # v2.0.0 dependabot.yml already tracks the github-actions ecosystem, so these pins stay maintained. https://claude.ai/code/session_01T3Z35bgg6cvWzBDfyh6pQ8 (cherry picked from commit ae343f8)
Connorrmcd6
approved these changes
Jun 15, 2026
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.
Severity: MEDIUM — release-pipeline supply chain
Every third-party Action was referenced by a mutable major tag (
@v6,@v3,@v4,@v2). A tag can be re-pointed by its owner — or by anyone who compromises that account —to arbitrary code. That code runs in jobs that hold:
contents: write(release.ymlbuild→ uploads release assets viaaction-gh-release)id-token: write(release.ymlnpm-publish→ npm provenance OIDC)notify-site→repository-dispatch)so a swapped Action could tamper with the published binaries
install.shconsumes, mintprovenance, or exfiltrate the dispatch token.
Change
Pin each Action to a full-length commit SHA with a trailing version comment — the format
Dependabot and Renovate parse and keep updated:
actions/checkoutdf4cb1c069e1874edd31b4311f1884172cec0e10actions/setup-node48b55a011bda9f5d6aeb4c2d9c7362e8dae4041esoftprops/action-gh-releaseb4309332981a82ec1c5618f44dd2e27cc8bfbfdapeter-evans/repository-dispatch28959ce8df70de7be546dd1250a005dd32156697rustsec/audit-check69366f33c96575abad1ee0dba8212993eecbe998SHAs resolved via
git ls-remoteagainst each upstream repo.dependabot.ymlalreadytracks the
github-actionsecosystem, so the pins stay maintained.🤖 Generated with Claude Code