Skip to content

Lock GitHub Actions dependencies with actions.lock - #6

Merged
noahd1 merged 1 commit into
mainfrom
claude/actions-lockfile
Nov 14, 2026
Merged

noahd1 merged 1 commit into
mainfrom
claude/actions-lockfile

Conversation

@noahd1

@noahd1 noahd1 commented Nov 14, 2026

Copy link
Copy Markdown
Member

Adopts GitHub's workflow dependency lockfile. .github/workflows/actions.lock pins the commit of every action the workflows use, and the runner downloads each action at its locked commit.

  • gh actions-lock v0.4.1 generated the lockfile and rewrote each uses: line to the full release tag at the commit that runs today:
    • actions/checkout@v4 → @v4.4.0
    • actions/setup-node@v4 → @v4.4.0
    • qltysh/qlty-action/coverage@b413a89… → @v2.2.2
  • New verify-lockfile.yml runs gh actions-lock --verify on pull requests and pushes to main. It fails when the lockfile is out of date or a locked commit no longer matches upstream.
  • verify-lockfile.yml starts with --- and disables yamllint's truthy rule for its on: key, so it passes this repo's yamllint config.

After changing a uses: line, run gh actions-lock and commit the lockfile with the workflow. Don't edit the lockfile by hand.

Testing: gh actions-lock --verify passes, and every SHA removed from a uses: line is the commit the lockfile records. qlty check reports no issues on the new workflow.

🤖 Generated with Claude Code

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>
@noahd1
noahd1 merged commit f18fcb5 into main Nov 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant