CI reference pinning guard
A deterministic Claude Code PreToolUse gate that reconstructs bounded CI workflow edits and blocks newly introduced external action, reusable-workflow, or container references that are mutable, dynamic, or incompletely pinned.
Runs on
What it does
Require immutable commit or digest references when CI workflows acquire external execution.
When it fires
- implementation
- review
- release
How it behaves
Reconstruct bounded CI workflow edits and reject net-new external references that are not pinned to immutable identities.
It does not execute, validate, repair, approve, or publish a CI workflow.
It does not resolve tags, branches, action metadata, container registries, or network identities.
It does not treat comments, prompt text, or a project-authored allowlist as authorization to bypass pinning.
It does not claim support for CI providers or reference syntaxes outside its documented scanners.
Configuration
targets/claude-code/ci-reference-pinning-guard.mjs
- Version
- 1.0.0
- Requires
- node
- Licence
- RiskThis automatic gate requires immutable commit or digest references when CI workflows acquire external execution; a false denial can interrupt legitimate work, but it does not execute the blocked action.
- Medium
- ModeHow it works: fixed rules, model instructions, or both.
- Deterministic only
- Behaviour
- Enforces, blocks on violation
- On failure
- Denies and blocks
- LatencyThe entrypoint handles one intercepted event to require immutable commit or digest references when CI workflows acquire external execution without deferred work.
- Immediate
- Data retentionWhether data remains after use and who manages its storage.
- Not retained
Often used with
All in Security