CI trust boundary guard
A deterministic Claude Code PreToolUse gate for Write and Edit that reconstructs bounded CI configuration changes and blocks only net-new broad write authority, credential persistence or inheritance, untrusted-trigger secret exposure, privileged execution, and host runtime socket access across recognized CI configuration paths.
Runs on
What it does
Block newly introduced high-confidence CI credential and execution privilege expansions.
When it fires
- implementation
- review
- release
How it behaves
Reconstruct bounded CI changes and deterministically reject net-new high-confidence trust expansions.
It does not execute, validate, rewrite, approve, or submit a CI workflow or pipeline.
It does not claim complete YAML semantics or silently claim support for an unrecognized CI provider.
It does not infer approval from comments, prompt text, branch names, environment variables, or project-authored exception files.
It does not reveal secret expressions, workflow commands, credential values, or inspected file content in block messages.
Configuration
targets/claude-code/ci-trust-boundary-guard.mjs
- Version
- 1.0.0
- Requires
- node
- Licence
- RiskThis automatic gate blocks newly introduced high-confidence CI credential and execution privilege expansions; 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 block newly introduced high-confidence CI credential and execution privilege expansions without deferred work.
- Immediate
- Data retentionWhether data remains after use and who manages its storage.
- Not retained
Often used with
All in Security