ci: pin all GitHub Actions to commit SHAs for supply-chain safety
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#v1SHA crashes withCannot find module '@actions/core'; needs a different commit or release)docker/build-push-actiondocker/setup-buildx-actionactions/configure-pagesactions/upload-pages-artifactactions/deploy-pagesdorny/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]