cacti icon indicating copy to clipboard operation
cacti copied to clipboard

ci: pin all GitHub Actions to commit SHAs for supply-chain safety

Open mn-ram opened this issue 7 months ago • 0 comments

Summary

Pins every remaining floating GitHub Action reference in .github/ to the exact commit SHA this repo already uses elsewhere. 14 files, one commit.

Why

Floating tags (@v4, @v5) are mutable — the tag owner can re-point them without notice (March 2025 tj-actions/changed-files compromise is the recent precedent). Most of this repo already SHA-pins actions; this PR aligns the stragglers with that existing convention.

Actions pinned

actions/checkout #v4.1.7 · actions/cache #v4.2.2 · actions/setup-node #v4.0.3 · actions/setup-go #v4.0.0 · actions/setup-java #v3.11.0 · actions/upload-artifact #v4.3.3 · actions/download-artifact #v4.1.8 · actions/create-release #v1 · docker/login-action #v3.3.0

Every SHA is already running on main via other workflows — zero behavior change.

Out of scope (follow-up PR)

Actions with no viable in-repo SHA precedent yet — either no existing pin, or the candidate SHA ships without bundled node_modules and fails at runtime:

  • foundry-rs/foundry-toolchain (the in-repo #v1 SHA crashes with Cannot find module '@actions/core'; needs a different commit or release)
  • docker/build-push-action
  • docker/setup-buildx-action
  • actions/configure-pages
  • actions/upload-pages-artifact
  • actions/deploy-pages
  • dorny/test-reporter

A follow-up PR will introduce initial pins for these once their target versions are reviewed.

Test plan

  • [x] Diff symmetrical (57 insertions / 57 deletions) — pure pinning.
  • [x] Commit squashed to a single atomic change.
  • [ ] CI green on this PR.

Signed-off-by: mn-ram [email protected]

mn-ram avatar Apr 24 '26 02:04 mn-ram