security(ci): pin third-party actions to commit SHAs#11
Open
skhaitan wants to merge 1 commit into
Open
Conversation
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
Step 4 Bundle 3 — pin all third-party GitHub Actions to commit SHAs (replacing floating tags like
@v4,@v7).Why
Floating tags (
@v4) point to a moving target. If the upstream action'sv4tag is repointed (by accident, by the maintainer, or by a stolen-PAT supply-chain attack), our workflows pick up the change on the next run with zero review. The 2025-03tj-actions/changed-filesincident is the canonical example — a stolen maintainer PAT repointedv35at malicious code overnight, every consumer's workflows ran the payload.SHA-pinning eliminates that vector. The trailing
# vXcomment keeps the version visible to humans.What changed
Every
uses: <owner>/<repo>@<vN>in.github/workflows/*.ymlrewritten touses: <owner>/<repo>@<sha> # vN.The SHAs were resolved from the action repo's tag refs on 2026-05-15 via
gh api repos/<owner>/<repo>/git/ref/tags/<tag>and recorded in/tmp/step4/pin-map.tsv(Sneha's local; included below for audit).Resolved-tag manifest:
Driven by: SECURITY-WORKFLOWS-TEMPLATE-PLAN §"Pin third-party actions by commit SHA" and 2026-05-13 rival-review consensus (Gemini, OpenAI).
Test plan
🤖 Generated with Claude Code