SHA pin first-party GitHub Actions#18
Closed
williammartin wants to merge 1 commit into
Closed
Conversation
Pins every actions/* and github/* uses: reference in .github/workflows to its commit SHA within its current major version, preserving the human-readable version in a trailing comment. Improves supply-chain posture against tag-mutation attacks on first-party namespaces. Follows cli/cli#13491 (cli/cli) and cli/cli#13490. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Part of the org-wide rollout following cli/cli#13491. See cli/cli#13490 for full rationale.
What
Replaces every
actions/*andgithub/*uses:reference in.github/workflows/*.ymlwith the equivalent commit SHA within its current major version, preserving the human-readable version in a trailing comment.Unique pins introduced:
actions/checkoutee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0actions/setup-gobfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0Why
SHA pinning protects against tag-mutation supply chain attacks on first-party action namespaces. While the cli/cli#13490 dependabot-cooldown framing doesn't apply here (this repo has no
dependabot.yml), the security improvement stands on its own.Notes / follow-ups
actions/checkout@v4+,actions/setup-go@v5+) is intentionally out of scope for this PR.dependabot.yml. Adding one would let dependabot automatically bump these SHA pins (and Go modules). Worth considering as a follow-up.Verification
@vN(tag-only) refs remain.Opened as a draft for review; mark ready when checks pass.