Skip to content

Add GitHub Actions lockfile - #425

Merged
tillrohrmann merged 1 commit into
mainfrom
actions-lockfile
Nov 5, 2026
Merged

tillrohrmann merged 1 commit into
mainfrom
actions-lockfile

Conversation

@tillrohrmann

Copy link
Copy Markdown
Contributor

Summary

Onboards this repository to GitHub Actions workflow lockfiles as part of tightening the restatedev org's Actions policy (allow-listed actions, SHA pinning, required lockfile).

  • .github/workflows/actions.lock (generated by gh actions-lock v0.4.0) pins every action, including transitive actions used inside composite actions, to a full commit SHA. This satisfies the org's "require full-length commit SHA" policy without writing SHAs into the workflows.
  • uses: refs are narrowed to the exact version that is locked (e.g. @v4 → @v4.4.0).
  • New verify-lockfile.yml runs gh actions-lock --verify on PRs that touch workflows or actions and on pushes to main, so the lockfile can't drift. It calls the shared workflow in restatedev/restate ([CI] Make verify-lockfile workflow reusable restate#5721), so the gh-actions-lock version is maintained in one place.
  • Known non-blocking warning: softprops/action-gh-release@v1 has no full version tag (latest is v3.0.3). Upgrading changes release behaviour, so it is left for a separate change.
  • Known non-blocking warning: gaurav-nelson/github-action-markdown-link-check@v1 has no full version tag and builds a Docker image whose base image the lockfile can't pin. Replacing it (e.g. with lycheeverse/lychee-action) is left for a separate change.

Updating actions

Change the uses: ref and run gh actions-lock (install with gh extension install github/gh-actions-lock --pin v0.4.0), then commit the updated actions.lock. Dependabot regenerates the lockfile in its PRs.

After this merges, the repository will be added to the org's Require-lockfile policy.

Test plan

  • gh actions-lock --verify: all workflows valid
  • Verify actions lockfile check passes on this PR

🤖 Generated with Claude Code

Pin every action used by the workflows in .github/workflows/actions.lock
via `gh actions-lock`, narrowing short tags like @v4 to the full version
they currently resolve to. Add a verify-lockfile workflow that calls the
shared check in restatedev/restate, so CI fails when the lockfile drifts
from the workflows.

This prepares the repository for the org's Require-lockfile policy.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tillrohrmann
tillrohrmann merged commit f995ef2 into main Nov 5, 2026
9 checks passed
@tillrohrmann
tillrohrmann deleted the actions-lockfile branch November 5, 2026 12:08
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant