Skip to content

ci: pin every GitHub Action by full commit SHA - #1217

Merged
bpalermo merged 4 commits into
mainfrom
deps/actions-sha-pin
Oct 4, 2026
Merged

bpalermo merged 4 commits into
mainfrom
deps/actions-sha-pin

Conversation

@bpalermo

@bpalermo bpalermo commented Oct 4, 2026

Copy link
Copy Markdown
Owner

GitHub Actions cohort — pin every uses: by full commit SHA

No action was SHA-pinned on main; every reference floated on a major tag (or, for setup-bazel, a version tag). Each one now names the exact commit the tag resolves to today, with the version in a trailing comment. 99 references across ci.yaml, e2e.yaml, main.yaml, pages.yaml, proxy.yml, proxy-release.yml, publish.yaml, publish-verify.yaml, quay-smoke.yaml. Only uses: lines change — no input, permissions: or step edits.

Action Was Now Latest release Same code as before?
actions/checkout (×35) @v7 @3d3c42e5… # v7.0.1 v7.0.1 yes (v7 → same SHA)
bazel-contrib/setup-bazel (×20) @0.19.0 @c5acdfb2… # 0.19.0 0.19.0 yes
actions/upload-artifact (×15) @v7 @043fb46d… # v7.0.1 v7.0.1 yes
actions/download-artifact (×14) @v8 @3e5f45b2… # v8.0.1 v8.0.1 yes
docker/login-action (×5) @v4 @dbcb8138… # v4.6.0 v4.6.0 yes
helm/kind-action (×3) @v1 @ef37e7f3… # v1.14.0 v1.15.0 yes (v1 → v1.14.0) — see held back
dorny/paths-filter (×2) @v4 @ceb8a2b8… # v4.0.3 v4.0.3 yes
actions/setup-java (×2) @v6 @de7274f0… # v6.0.1 v6.0.1 yes
azure/setup-helm @v5 @9bc31f4e… # v5.0.1 v5.0.1 yes
actions/upload-pages-artifact @v5 @fc324d35… # v5.0.0 v5.0.0 yes
actions/deploy-pages @v5 @368f8252… # v5.0.1 v5.0.1 yes

SHAs were resolved with gh api repos/<action>/git/ref/tags/<tag> (annotated tags dereferenced to the commit) and cross-checked against each repo's latest release. Every floating tag already pointed at the latest release except helm/kind-action@v1, so runtime behaviour is unchanged by this PR: it only removes the ability of a re-pointed tag to change what CI runs.

Held back

  • helm/kind-action v1.14.0 → v1.15.0. v1.15.0 changes DEFAULT_KIND_VERSION v0.31.0 → v0.33.0 and DEFAULT_KUBECTL_VERSION v1.35.0 → v1.37.0 (kind.sh). ci.yaml (e2e) and the two Gateway/Mesh conformance jobs in e2e.yaml take the defaults, so v1.15.0 would move their cluster Kubernetes version — a conformance environment change, out of scope for this sweep. Pinned at v1.14.0 (exactly what runs today); moving it is a one-line change once someone wants the newer kind node.

Checks

  • go run github.com/rhysd/actionlint/cmd/[email protected] (and v1.7.12): 5 findings, identical on main (line numbers aside) — all pre-existing "github.head_ref" is potentially untrusted in inline scripts (ci.yaml ×4, proxy.yml ×1). Not touched here: no drive-by CI edits.
  • Every uses: matches @[0-9a-f]{40} # <version>.
  • Permissions: unchanged (no permissions: line in the diff).
  • Note for review: CodeQL's actions/untrusted-checkout on publish-verify.yaml may re-fire because that file is in the diff. It is the known false positive you dismiss yourself; I have not dismissed anything.
  • gh pr update-branch will not work on this PR (it touches .github/workflows and the token lacks workflow scope) — rebase over git if it falls behind.

Merge order

Independent of every other cohort PR.

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Each `uses:` moves from a floating tag to the commit that tag resolves
to today, with the version in a trailing comment. 99 references across
9 workflows; no input, permission or step change.

Every pin is the latest release of the action except helm/kind-action,
pinned at v1.14.0 (what @v1 resolves to now) rather than v1.15.0, whose
new default kind v0.33.0 / kubectl v1.37.0 would change the Kubernetes
version of the e2e and conformance clusters.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
@bpalermo
bpalermo merged commit d0c0537 into main Oct 4, 2026
25 checks passed
@bpalermo
bpalermo deleted the deps/actions-sha-pin branch October 4, 2026 21:53
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