Skip to content

ci: lock GitHub Actions in actions.lock and verify it in CI - #10

Merged
ivy merged 1 commit into
mainfrom
ci/lock-actions
Nov 13, 2026
Merged

ivy merged 1 commit into
mainfrom
ci/lock-actions

Conversation

@ivy

@ivy ivy commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Pins every action this repository's workflows use to a verified commit in .github/workflows/actions.lock (via gh actions-lock), so uses: lines carry readable tags while the lockfile records what they resolve to.

  • actions-lock.yml runs gh actions-lock --verify on every push and pull request, failing when the lockfile no longer matches the workflows or a pinned commit stops verifying upstream.
  • Renovate regenerates actions.lock with each action update; the shared github>ivy/renovate-config preset keeps the verifier's --pin current.

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.
@ivy
ivy merged commit 18a7099 into main Nov 13, 2026
7 checks passed
@ivy
ivy deleted the ci/lock-actions branch November 13, 2026 07:46
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