← Back to Pull requests

Lock GitHub Actions with a workflow lockfile #178

Open
unknown opened this pull request with 358 lines diff across 4 files
View on GitHub
unknown unknown commented on Nov 17, 2026 13:11 UTC
Author

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.

  • Lockfile: 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.

  • Exact tags: floating major tags became exact tags, e.g. 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.

  • CI verification: a new lockfile job in ci.yml runs gh actions-lock --verify. It fails if a workflow changes without a relock, or if a locked tag has moved upstream.

  • CODEOWNERS: the lockfile now decides which action code runs, so it needs the same review as the workflow files.

  • Dependabot: it regenerates actions.lock in its github-actions PRs, with no config change (docs).

  • PyPI publishing: pypa/gh-action-pypi-publish@release/v1 stays 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, so gh actions-lock prints 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:

  • The postgres:17 service image in pytest isn't pinned by digest, and lockfiles don't cover container images. gh actions-lock prints a warning about it, but it doesn't fail.
  • Changing uses: from now on: run gh actions-lock after adding a workflow or changing an action ref, then commit the updated lockfile. Install the extension with gh extension install github/gh-actions-lock. Never edit actions.lock by hand.

    Follow-ups once this is merged (repo settings, not part of this PR):

  • Make the lockfile check required.

  • Turn on the Require lockfile policy under Settings → Actions → Policies.

  • Bump the --pin v0.4.1 in CI by hand, since Dependabot can't track gh extensions (github/gh-actions-lock#266).
  • How to test

    1. Check that the new lockfile CI job passes.
    2. Locally: gh extension install github/gh-actions-lock --pin v0.4.1 && gh actions-lock --verify

    🤖 Generated with Claude Code

    Diff: 358 lines (+268 / -90) across 4 files Reviewer: codingjoe Review duration: 102m
    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
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    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
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 42.6% (MEDIUM) · Higher = larger blast radius
    42.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 46.7% · Lower = rushed or shallow review
    46.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.7% · Safe to merge
    22.7%