veto_ci_gate
Analyzes git diff for code review, security, and secrets; returns pass/warn/fail verdict with exit code for CI/CD pipeline gating.
Instructions
CI/CD pipeline gate. Runs code review + security scan + secrets scan on a git diff and returns a structured pass/warn/fail verdict with exit code. Ready for GitHub Actions and GitLab CI.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| diff | No | Optional: pass a diff string directly instead of reading from project_dir. | |
| context | No | Optional: PR description or ticket number for context. | |
| fail_on | No | Whether WARN counts as a failure (exit code 1). Default: "fail" — only FAIL exits non-zero. | |
| project_dir | Yes | Absolute project path. Veto reads git diff HEAD automatically. | |
| agent_outputs | No | Phase 2 responses from the host AI (JSON). Pass this back when prompted by the server to complete the agentic loop. |