This repository was archived by the owner on Nov 10, 2026. It is now read-only.
Repository navigation
ci: lock workflow actions and verify the lockfile on PRs - #66
Merged
Merged
Conversation
Add .github/workflows/actions.lock, generated by gh actions-lock v0.4.0, and a Lockfile check that runs gh actions-lock --verify on pull requests and pushes to main. Workflow refs become tags, and the lockfile holds the commits. Every locked commit equals what ran before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it
Same onboarding as getplumber/plumber#570 and getplumber/getplumber.io#532, for this repository. Some of our actions were pinned to a commit SHA, others were not (
actions/checkout@v3,actions/checkout@v3.1.0,actions/setup-python@v4.3.0). Nothing checked that the repository behind a name is still the one we pinned, nothing pinned the actions our actions call, and nothing stopped a new step with@v1.Important
This repository has no CODEOWNERS file and no Dependabot config. No one is requested automatically to review lockfile changes, and nothing bumps the locked actions. This PR adds neither.
.github/workflows/actions.lock(generated bygh actions-lockv0.4.0) covers all 4 workflows. For each action it records the commit,owner_idandrepo_id, plus 3 transitive dependencies:azure/setup-helm@v4.0.0(called byd3adb5/helm-unittest-action), andgithub/codeql-action@6f2ac81andactions/upload-artifact@cf430e0(called bygetplumber/plumber@v0.7.18).uses: owner/action@<sha> # vX.Y.Zto@vX.Y.Z, and narrowedactions/checkout@v3to@v3.7.0, which is the same commit (a37ce91). No code that runs changes.Lockfilecheck (.github/workflows/verify-lockfile.yml, same file as in plumber and getplumber.io): runsgh actions-lock --verifyon pull requests and on pushes tomain. No path filter, so it can become a required check.Special notes for your reviewer
actionsMustBePinnedByCommitShashould still pass for the third-party actions. The Plumber job on this PR confirms it.actions.lockmay score tag refs lower.d3adb5/helm-unittest-actionwas commented# 2.5.0; the real tag isv2.5.0, on the commit we had pinned.azure/setup-helm@v3.5isn't a full semver tag, so the tool warns about it. The lockfile still pins its commit.actions/checkoutv3,actions/setup-pythonv4.3.0,azure/setup-helmv3.5, latest v5.0.1), andci.ymlandrelease.ymluse different checkout versions fromplumber.yml. Upgrading them is a separate change.Admin follow-ups after merge:
Lockfilea required status check in theBranch protectionruleset..github/CODEOWNERS(at least for.github/workflows/actions.lock, as in plumber), and a Dependabot config for github-actions.How was this tested?
gh actions-lock --verify: all 4 workflows valid.gh actions-lock --verify-local --no-fix: complete coverage.mainwith the lockfile'scommit(7 pins, all equal), and eachowner_id/repo_idwithgh api repos/<owner>/<repo>(10 repositories, all equal). The 3 refs that weren't SHA-pinned were resolved through the API and match the lockfile.uses:lines.Lockfilejob.AI usage disclosure
YES. Claude Code ran
gh actions-lock, copied the verify workflow, wrote the docs, and ran the checks above.🤖 Generated with Claude Code