Add immutable-ref CI guard for images and actions
Merged
MI
1mo ago+442+442+012345678901234567890123456789-0-0-0123456789
Summary
Adds a CI guard (scripts/check_immutable_refs.py + a Pinned refs workflow) that fails on tag-only or :latest Dockerfile images and on any GitHub Action not pinned by full commit sha. The repo has no Dockerfiles or external actions today, so there is nothing to pin yet; the guard keeps future additions immutable.
Changes
scripts/check_immutable_refs.py: requires any future Dockerfile image to be pinned by digest and any GitHub Action by full commit sha (tags are mutable, which is how tag-rewrite supply-chain attacks land).- New "Pinned refs" workflow runs the guard.
Testing
-
python3 scripts/check_immutable_refs.pyexits 0 -
make ci(not applicable: there is no Makefile)
Generated by Claude Code