Skip to content

Add a GitHub Actions lockfile - #28

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

robin-simular wants to merge 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>

@011235813 011235813 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking issues.

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.

2 participants