Repository navigation
Add GitHub Actions lockfile - #425
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 bygh actions-lockv0.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).verify-lockfile.ymlrunsgh actions-lock --verifyon PRs that touch workflows or actions and on pushes tomain, so the lockfile can't drift. It calls the shared workflow inrestatedev/restate([CI] Make verify-lockfile workflow reusable restate#5721), so thegh-actions-lockversion is maintained in one place.softprops/action-gh-release@v1has no full version tag (latest is v3.0.3). Upgrading changes release behaviour, so it is left for a separate change.gaurav-nelson/github-action-markdown-link-check@v1has no full version tag and builds a Docker image whose base image the lockfile can't pin. Replacing it (e.g. withlycheeverse/lychee-action) is left for a separate change.Updating actions
Change the
uses:ref and rungh actions-lock(install withgh extension install github/gh-actions-lock --pin v0.4.0), then commit the updatedactions.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 validVerify actions lockfilecheck passes on this PR🤖 Generated with Claude Code