Lock GitHub Actions with a workflow lockfile #178
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.43) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 358 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.352
Shallow Review Depth
shallow_review_depth
0.344
Real PR Conversation Timeline
1 comments
"Review active on #178"
general
weight: 0.35
codingjoe
Description
Adopts GitHub Actions workflow lockfiles, the same change as in our other repos (e.g. voiio/voiio-platform#16599), following Hugo van Kemenade's guide.
gh actions-lock(v0.4.1) generated.github/workflows/actions.lock, which records the commit, owner ID and repo ID of every action used here, including actions that composite actions call. The runner only runs the locked commit.actions/checkout@v7→@v7.0.1. I checked every one, and each exact tag points to the same commit as the major tag does today, so this changes no action versions.lockfilejob inci.ymlrunsgh actions-lock --verify. It fails if a workflow changes without a relock, or if a locked tag has moved upstream.actions.lockin its github-actions PRs, with no config change (docs).pypa/gh-action-pypi-publish@release/v1stays on its branch ref, and its current commit is locked. At run time it generates a local Docker action, which the lockfile can't follow, sogh actions-lockprints a warning. That local action uses no other actions, so publishing keeps working when the lockfile is enforced (troubleshooting docs, github/gh-actions-lock#128). The Docker image it pulls is not covered by the lockfile (pypa/gh-action-pypi-publish#425).Notes for this repo:
postgres:17service image inpytestisn't pinned by digest, and lockfiles don't cover container images.gh actions-lockprints a warning about it, but it doesn't fail.Changing
uses:from now on: rungh actions-lockafter adding a workflow or changing an action ref, then commit the updated lockfile. Install the extension withgh extension install github/gh-actions-lock. Never editactions.lockby hand.Follow-ups once this is merged (repo settings, not part of this PR):
lockfilecheck required.--pin v0.4.1in CI by hand, since Dependabot can't track gh extensions (github/gh-actions-lock#266).How to test
1. Check that the new
lockfileCI job passes.2. Locally:
gh extension install github/gh-actions-lock --pin v0.4.1 && gh actions-lock --verify🤖 Generated with Claude Code