Skip to content

Output and exit codes

Luis edited this page Dec 5, 2026 · 2 revisions

Output and exit codes

Moved from the README (2026-12-02). Where this page and the ADRs disagree, the ADRs win.

creep scan writes .creep/report.json (schema v1), .creep/report.sarif, .creep/report.md and .creep/report.html, per report.formats. Reports from earlier runs are removed before each run. Each class is covered, partial or not_evaluated, with the reason. Every report also lists the classes no scan looks for (see Limits), in JSON as coverage.not_looked_for; code eval and deserialization sinks are reported as code_injection and insecure_deserialization. Schema v1 changes additively only; a not-evaluated file can have the reason unchanged (left out of an incremental scan).

Code Meaning
0 Nothing blocking
1 Gate exceeded: the gate of the scan's mode, gates.pr (default probable:critical), or for a nightly scan gates.nightly (default verified:high, read as probable:high when the nightly scan could not verify) and gates.pr
2 Usage, configuration or consent error
3 Model, tool canary, calibration or sandbox error, including when calibration finds the model unfit (without --allow-unfit-model)
4 Incomplete run: report written, not everything evaluated (ADR 0007, ADR 0009)

An incomplete run never exits 0, even when the gate also trips.

Baseline

To gate only on new findings, take a baseline from a complete scan, commit it, and pass it to every scan (ADR 0022):

creep scan --baseline creep-baseline.json --baseline-write   # once, from a complete run
creep accept sink-3 --expires 90d --reason "admin-only tool, fix in #12"
creep scan --baseline creep-baseline.json

A finding is matched by its fingerprint (class, path and redacted sink line), so lines moving do not make it new; editing the sink line does, and so does a class change: since #365 an eval or deserialization sink is code_injection or insecure_deserialization, so a baseline entry or accepted risk recorded for it as command_injection no longer matches and the finding shows up once as new; take the baseline again or accept it under its new class (ADR 0034). Every entry expires (baseline entries after 90 days, accepted risks when you say, at most 365 days), and an expired entry stops suppressing. A suppressed finding is still listed, with its expiry and reason, in the text summary, Markdown, SARIF (suppressions) and JSON (suppression); only the gate skips it. A not-evaluated finding is never suppressed, and an incomplete run still exits 4. A malformed baseline, a link in its place or an expiry over a year away exits 2. In a pull request, read the baseline from the base commit, so the pull request cannot suppress its own finding: git show "$BASE_SHA:creep-baseline.json" > "$RUNNER_TEMP/baseline.json" and creep scan --baseline "$RUNNER_TEMP/baseline.json".

Clone this wiki locally