Skip to content

Add a GitHub Actions lockfile - #8

Open
robin-simular wants to merge 1 commit into
mainfrom
ci/actions-lockfile
Open

robin-simular wants to merge 1 commit into
mainfrom
ci/actions-lockfile

Conversation

@robin-simular

Copy link
Copy Markdown

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 rewrote short tags such as v4 to the full release they point to today (v4.4.0). The workflows run the same commits as before.
  • verify-lockfile.yml fails when the lockfile and the workflows are out of sync. It runs only when something under .github/ changes.
  • Dependabot now also updates the actions, weekly. It updates the lockfile in the same PR.
  • ruby/setup-ruby@v1 resolves to v1.345.0, released on 2026-11-25. That is the commit @v1 runs today.

🤖 Generated with Claude Code

.github/workflows/actions.lock pins every action, including the actions
those actions use, to an exact commit. gh actions-lock rewrote short
tags to the full release they point to today. verify-lockfile.yml checks
the lockfile whenever something under .github changes. Dependabot now
updates the actions.

Co-Authored-By: Claude <noreply@anthropic.com>
@robin-simular
robin-simular marked this pull request as ready for review November 27, 2026 02:12

This branch has not been deployed

No deployments
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