Repository navigation
ci: lock workflow actions through an actions.lock lockfile - #212
dylanmtaylor wants to merge 2 commits into
Conversation
Mutable action tags are a supply-chain risk: a moved tag runs different code without a diff. Every workflow action is now pinned through .github/workflows/actions.lock, and CI verifies the lockfile so an out-of-sync or tampered one fails instead of running.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Fails the build when .github/workflows/actions.lock stops matching the workflows, or when a locked pin no longer verifies upstream, so a stale or tampered lockfile cannot go unnoticed between dependency updates.
|
| timeout-minutes: 10 | ||
| steps: | ||
| - name: Harden runner | ||
| uses: step-security/harden-runner@v2.22.4 |
FredApps
left a comment
There was a problem hiding this comment.
Reviewed head 169dc08, both added files, the current shared CI/release callers and exact-head AGENTS. Please move the verification job into storytold/craft-common-actions and call that reusable workflow here, or obtain a documented maintainer exception. The repository's core rule 11 says CI stays shared and workflows call craft-common-actions; the new local runs-on/steps job is a separate implementation rather than a shared caller.
Also qualify the lock coverage in the description/comment. This lockfile has empty lists for CI/release and the other shared callers, while the CI caller still references craft-common-actions/.../gate.yml@main. The two populated dependencies are the checkout/harden-runner steps of the new verifier itself; this is not evidence that the reusable workflow contents or their transitive action refs are locked. Avoid implying moved refs anywhere in the suite are now prevented by this file.
Validation: the exact-head Lockfile check and Linux/Windows gates pass. Sonar analysis reports failure (not diagnosed in this review). No local builds/tests, extension installation or merges performed.




Applies the lockfile setup from https://hugovk.dev/blog/2026/lock-github-actions/.
gh actions-lockreplaces the hand-maintained commit SHAs with tag refs such asactions/checkout@v7.0.1, and generates.github/workflows/actions.lockrecording the commit each ref resolves to. A moved tag now shows up as a lockfile diff instead of silently running new code.After editing a workflow, re-run
gh actions-lockand commit the lockfile with it.Summary by CodeRabbit