Repository navigation
ci: lock GitHub Actions in actions.lock and verify it in CI - #10
Merged
Merged
Conversation
The workflows referenced actions by floating major tags (actions/checkout@v5, actions/setup-node@v6, devcontainers/action@v1), so whatever commit those tags pointed at on the day of a run is what executed, including in the release job that publishes the features. `gh actions-lock` narrows each reference to the exact tag at the same commit and records that commit in .github/workflows/actions.lock, which GitHub enforces at run time. The new actions-lock workflow fails when the lockfile drifts from the workflows or a pinned commit no longer verifies upstream. Renovate manages only the workflow actions, the lockfile (Renovate regenerates it on each bump), and the gh-actions-lock release the verify job installs, via the shared ivy/renovate-config preset.
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.
Pins every action this repository's workflows use to a verified commit in
.github/workflows/actions.lock(viagh actions-lock), souses:lines carry readable tags while the lockfile records what they resolve to.actions-lock.ymlrunsgh actions-lock --verifyon every push and pull request, failing when the lockfile no longer matches the workflows or a pinned commit stops verifying upstream.actions.lockwith each action update; the sharedgithub>ivy/renovate-configpreset keeps the verifier's--pincurrent.