Repository navigation
Lock GitHub Actions dependencies with actions.lock - #6
Merged
Merged
Conversation
Adopt GitHub's workflow dependency lockfile. gh actions-lock pins every action the workflows use in .github/workflows/actions.lock, and each uses: line now names the full release tag at the commit that runs today. A new verify-lockfile workflow runs gh actions-lock --verify on pull requests and pushes to main. 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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adopts GitHub's workflow dependency lockfile.
.github/workflows/actions.lockpins the commit of every action the workflows use, and the runner downloads each action at its locked commit.gh actions-lockv0.4.1 generated the lockfile and rewrote eachuses:line to the full release tag at the commit that runs today:actions/checkout@v4→@v4.4.0actions/setup-node@v4→@v4.4.0qltysh/qlty-action/coverage@b413a89…→@v2.2.2verify-lockfile.ymlrunsgh actions-lock --verifyon pull requests and pushes tomain. It fails when the lockfile is out of date or a locked commit no longer matches upstream.verify-lockfile.ymlstarts with---and disables yamllint'struthyrule for itson:key, so it passes this repo's yamllint config.After changing a
uses:line, rungh actions-lockand commit the lockfile with the workflow. Don't edit the lockfile by hand.Testing:
gh actions-lock --verifypasses, and every SHA removed from auses:line is the commit the lockfile records.qlty checkreports no issues on the new workflow.🤖 Generated with Claude Code