Skip to content

ci: add a GitHub Actions lockfile - #41

Merged
robin-simular merged 1 commit into
mainfrom
ci/actions-lockfile
Nov 27, 2026
Merged

robin-simular merged 1 commit into
mainfrom
ci/actions-lockfile

Conversation

@robin-simular

Copy link
Copy Markdown
Collaborator

GitHub Actions now supports workflow lockfiles. .github/workflows/actions.lock pins every action our workflows run to an exact commit, including the actions those actions use. That protects against supply chain attacks, for example through a transitive dependency whose tag is moved to malicious code.

  • actions.lock is generated by gh actions-lock. Rerun it after adding a workflow or changing a uses: line.
  • The tool moved the commit SHAs from the uses: lines into the lockfile. The same commits stay pinned.
  • verify-lockfile.yml fails when the lockfile and the workflows are out of sync. It runs only when something under .github/ changes.
  • Dependabot already updates the actions here. It updates the lockfile in the same PR.

🤖 Generated with Claude Code

.github/workflows/actions.lock pins every action, including the actions
those actions use, to an exact commit. gh actions-lock moved the commit
SHAs out of the uses: lines into the lockfile; the same commits stay
pinned. verify-lockfile.yml checks the lockfile whenever something under
.github changes.

Co-Authored-By: Claude <noreply@anthropic.com>
@robin-simular
robin-simular marked this pull request as ready for review November 27, 2026 02:12
@robin-simular
robin-simular merged commit 2b0e7b5 into main Nov 27, 2026
12 checks passed
@robin-simular
robin-simular deleted the ci/actions-lockfile branch November 27, 2026 02:15
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