Onboard workflows to Actions lockfile - #11
Merged
Conversation
Prep for the public open-source release (github/open-source-releases#710). Dogfood the lockfile this repo defines: run `gh actions-lock` to pin every resolvable action to an immutable commit SHA recorded in .github/workflows/actions.lock. The tool narrows the mutable refs in the workflow files to full semver (actions/checkout@v4 -> @v4.3.1, actions/setup-go@v5 -> @v5.6.0) and records the resolved SHA + owner/repo ids in the lockfile. All changes here are tool-generated; nothing was hand-edited. This replaces the manual SHA-pinning PR (#9).
There was a problem hiding this comment.
⚠️ Not ready to approve
CI does not currently verify that .github/workflows/actions.lock matches the workflow refs, which undermines the PR’s stated “machine-verifiable” lockfile workflow.
Pull request overview
This PR onboards the repository’s GitHub Actions workflows to the Actions dependency lockfile format the repo defines, replacing manual SHA pinning with a generated .github/workflows/actions.lock plus semver-tagged uses: entries in workflows.
Changes:
- Adds
.github/workflows/actions.lock(schemav0.0.2) pinning workflow action refs to immutable commits. - Updates CI and Release workflows to use full semver tags for
actions/checkoutandactions/setup-go. - Adds a “managed by gh actions-lock” header to the workflows.
File summaries
| File | Description |
|---|---|
| .github/workflows/ci.yml | Pins action refs to full semver tags and marks the workflow as tool-managed. |
| .github/workflows/release.yml | Pins action refs to full semver tags and marks the workflow as tool-managed. |
| .github/workflows/actions.lock | Introduces generated lockfile capturing resolved commit SHAs for workflow action refs. |
Review details
- Files reviewed: 2/3 changed files
- Comments generated: 1
- Review effort level: Low
Note
Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
21
to
+24
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v4.3.1 | ||
|
|
||
| - uses: actions/setup-go@v5 | ||
| - uses: actions/setup-go@v5.6.0 |
nodeselector
added a commit
that referenced
this pull request
Jul 8, 2026
Prep for the public open-source release (github/open-source-releases#710). Dogfood the lockfile this repo defines: run `gh actions-lock` to pin every resolvable action to an immutable commit SHA recorded in .github/workflows/actions.lock. The tool narrows the mutable refs in the workflow files to full semver (actions/checkout@v4 -> @v4.3.1, actions/setup-go@v5 -> @v5.6.0) and records the resolved SHA + owner/repo ids in the lockfile. All changes here are tool-generated; nothing was hand-edited. This replaces the manual SHA-pinning PR (#9).
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of OSS-readiness prep for the public release — see github/open-source-releases#710.
Replaces #9 (manual SHA-pinning). Instead of hand-pinning, we dogfood the lockfile.