ClavoLock Gate matched gh actions-lock on 6 of 6 fixtures and still fails tag-only refs
A fail-closed PR check for GitHub Actions lockfiles plus zizmor's unpinned-uses check. Offline, its lockfile verdict matched gh actions-lock on all 6 fixtures with workflows.
By David Discua
Measured in the lab
- 7
- fixtures
- 6/6
- lockfile verdicts matching gh actions-lock
- 5
- fixtures failing strict mode
- 46
- tests passing
- missing-lock fails with missing-lockfile
- stale-lock fails with not-pinned and stale
- Offline verdict matched gh actions-lock --verify-local on 6 of 6
- A zizmor.yml in the PR cannot relax the check
- tag-only-ref fails strict, passes lock-aware
From reports/clavolock-gate.json · run on October 21, 2026. Bun 1.4.3, zizmor 1.31.1, gh-actions-lock 0.2.0 on darwin-x64; all runs offline, no tokens; report carries a date only
How it is wired
01/03A pull request adds or changes a workflow.
GitHub put workflow lockfiles into public preview on October 14, 2026. gh actions-lock writes .github/workflows/actions.lock, and Actions runs the recorded commits. A plain pull request can still add a workflow without a lockfile, change a uses: ref without relocking, or add @main. ClavoLock Gate fails that PR before merge by combining its own offline lockfile check, the real gh actions-lock --verify-local, and zizmor's unpinned-uses check. On our seven fixtures, its lockfile verdict matched gh actions-lock on all six that have workflows. The catch is that the two upstream tools disagree about what a good ref looks like.
The catch
zizmor (since v1.20.0) wants every uses: hash-pinned. gh actions-lock accepts tags, because the lockfile holds the commit, and warns sha-as-ref on bare SHAs. The tag-only-ref fixture passes both lockfile engines and fails zizmor. By default the gate takes zizmor's side, so you pin SHAs with the tag as a trailing comment. --lock-aware demotes the zizmor finding only when the ref is an exact semver tag that actions.lock pins for that workflow. That mode is this lab's policy, and an exact tag can still be re-pointed upstream.
The offline check covers structure and coverage. It cannot tell whether a pinned commit exists or belongs to the tag's history; only --online (gh actions-lock --verify) checks that. The online path ran once, read-only, against the lab repo and passed. The reusable workflow and composite action had not run on GitHub when the report was written. gh actions-lock is a pre-1.0 preview, and the gate is tested against v0.2.0 and lockfile format v0.0.3.
What we ran (keyless)
bun install --frozen-lockfile
bun run tools # zizmor 1.31.1 + gh-actions-lock 0.2.0, sha256-checked
bun run clavolock check fixtures/stale-lock
bun run report
From reports/clavolock-gate.json, run on October 21, 2026, offline and with no tokens:
| Fixture | Lockfile check | gh actions-lock --verify-local | zizmor unpinned-uses | Strict exit | Lock-aware exit |
|---|---|---|---|---|---|
pinned-locked | pass | pass | 0 | 0 | 0 |
missing-lock | fail (missing-lockfile) | fail | 0 | 1 | 1 |
stale-lock | fail (not-pinned, stale) | fail | 0 | 1 | 1 |
unpinned-ref | pass | pass | 1 | 1 | 1 |
tag-only-ref | pass | pass | 2 | 1 | 0 |
zizmor-config-bypass | pass | pass | 2 | 1 | 0 |
no-workflows | pass | skipped | 0 | 0 | 0 |
The fixture lockfiles were generated by gh actions-lock v0.2.0, not by hand. On stale-lock, both engines reported the same three blocking findings: actions/setup-node used but not pinned in ci.yml, an old setup-node pin that no workflow references, and release.yml not onboarded at all. The zizmor-config-bypass fixture shows why zizmor runs with --no-config --no-ignores. With --respect-zizmor-config, a zizmor.yml committed in the PR turns that run from fail to pass. The README records 46 passing tests and 0 failing on the last local bun run check.
How it is wired
The gate reads the repo's workflows and actions.lock, runs its own TypeScript validator against the published lockfile schema, then runs the two pinned binaries. If zizmor or a required gh actions-lock cannot run, it exits 2 and fails. Exit 1 means a check failed. It writes one Markdown and SARIF report and ships as a CLI, a composite action and a reusable workflow whose steps are inlined, so callers can onboard it to their own lockfile.
Minilab (open source)
The gate wraps github/gh-actions-lock (248 stars, MIT, Go) and zizmorcore/zizmor (6,766 stars, MIT, Rust), as of October 24, 2026. Add a fixture under fixtures/, run bun run report, and check that expectations_met in reports/clavolock-gate.json stays true.
Run it yourself
SkilledDragonCorp/clavolock-gate
Clone, install and run the report with no API keys. The numbers above are what that run writes.
bun install --frozen-lockfile && bun run tools && bun run clavolock check fixtures/stale-lockSkilledDragon is not affiliated with GitHub, Inc. or the zizmor project. Numbers are from our own keyless lab run; re-run the report before relying on them. Marks belong to their owners.
All labs