Skip to content

SHA pin first-party GitHub Actions#18

Closed
williammartin wants to merge 1 commit into
cli:mainfrom
williammartin:wm-sha-pin
Closed

SHA pin first-party GitHub Actions#18
williammartin wants to merge 1 commit into
cli:mainfrom
williammartin:wm-sha-pin

Conversation

@williammartin
Copy link
Copy Markdown
Member

Part of the org-wide rollout following cli/cli#13491. See cli/cli#13490 for full rationale.

What

Replaces every actions/* and github/* uses: reference in .github/workflows/*.yml with the equivalent commit SHA within its current major version, preserving the human-readable version in a trailing comment.

Unique pins introduced:

Action Pinned to
actions/checkout ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
actions/setup-go bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0

Why

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

  • The pinned refs remain on the v2 major series, matching the current usage. Bumping to the latest majors (actions/checkout@v4+, actions/setup-go@v5+) is intentionally out of scope for this PR.
  • This repo has no dependabot.yml. Adding one would let dependabot automatically bump these SHA pins (and Go modules). Worth considering as a follow-up.

Verification

  • All workflow YAML still parses.
  • No first-party @vN (tag-only) refs remain.

Opened as a draft for review; mark ready when checks pass.

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>
@williammartin williammartin deleted the wm-sha-pin branch May 22, 2026 16:01
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