Skip to content

Lock workflow action dependencies with actions.lock - #26

Merged
rgarcia merged 1 commit into
mainfrom
hypeship/actions-lockfile
Nov 13, 2026
Merged

rgarcia merged 1 commit into
mainfrom
hypeship/actions-lockfile

Conversation

@rgarcia

@rgarcia rgarcia commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Adds GitHub's workflow dependency lockfile. .github/workflows/actions.lock records the commit behind every action the workflows use, so a moved tag on a third-party action can't change what runs in CI. That includes publish-npm.yml, which publishes the package, and the release and promotion workflows that use actions/create-github-app-token.

  • .github/workflows/actions.lock was generated with gh actions-lock, not edited by hand. gh actions-lock --verify passes (8 workflows valid).
  • Actions were already SHA-pinned with a version comment. They are now written as their exact release tag, for example actions/checkout@v6.0.2 and actions/create-github-app-token@v1.12.0, with the commit recorded in the lockfile. The commits are unchanged. pnpm/action-setup in release-please.yml was pinned to the SHA of the annotated v4 tag object; it is now v4.3.0, which is the commit that tag points to and the version ci.yml already used.
  • Only uses: lines change.
  • Not covered: job-level reusable workflow calls to kernel/security-workflows/...@main (semgrep.yml, vuln-remediation.yml). A lockfile does not cover reusable workflows.

Stainless-generated workflows. Most workflow files here are maintained by the Stainless SDK generator, which has rewritten uses: lines before (for example, "ci: pin GitHub Actions to commit SHAs"). If a later codegen run changes an action ref, it has to be re-locked with gh actions-lock, otherwise the workflow will fail the lockfile check. These edits may also show up as custom code in the generator and could conflict on a future workflow template change.

@rgarcia
rgarcia merged commit 9b219eb into main Nov 13, 2026
10 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