Skip to content

Configuration

Luis edited this page Dec 5, 2026 · 2 revisions

Configuration

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

Layers, later overriding earlier: built-in defaults → org policy (CREEP_POLICY, an absolute path; can lock keys and set limits) → user file (~/.creep/config.yaml) → project file (./creep.yaml) → flags. --config replaces the user and project files. Unknown keys are errors; schema: schema/config.schema.json.

The project file comes from the repository being scanned, so it is untrusted. It cannot:

  • choose where code goes or what reads it: model.contract, model.endpoint, model.name, model.preset, model.run, model.env, egress.allow, model.tier (unused today: the scan takes the tier from calibration; refused so a future forced-tier option cannot come from the repository);
  • choose the sandbox (sandbox.enabled, sandbox.runtime, sandbox.mirror.bridge, sandbox.mirror.proxy) or the scanners (scanners.enabled, not even to remove one);
  • choose what creep writes or prints: report.formats and output.format, so a CI step that uploads .creep/report.sarif or reads report.json or report.html or the terminal output always gets its input;
  • pick the scan mode: there is no mode key in any file, only --mode and the CI event;
  • loosen a gate or grant consent: gates.pr and gates.nightly may only get stricter than the stricter of the built-in gate, the policy limit and the gate the layers before it set (policy defaults, the user file), so a repository cannot hand back the built-in gate to an operator who tightened it;
  • raise a limit: budget.max_tokens, budget.max_calls, budget.max_seconds, model.timeout_seconds, model.max_output_bytes and calibration.cache_days may only be lowered.

Any of these is a configuration error (exit 2) that names the project file and, for a gate or a limit, the layer that set the value it would loosen. A lower limit cannot make a pull request pass with less checked: work skipped for budget, a call refused by the budget, a timed-out model call and a scan past its deadline each make the run incomplete (exit 4).

budget.max_seconds (default 7200, 1 to 86400) is the scan deadline. It starts after calibration, which reads no repository text, and covers discovery, redaction and model reads. A crafted file can make redaction take minutes; past the deadline creep stops inside the file it is on, lists that file and every file and sink it did not reach as not evaluated, writes its reports and exits 4 with reason budget, so a CI job ends with an incomplete report instead of a runner timeout. Files it never reached are not read. creep estimate is bounded the same way and exits 4 with PARTIAL ESTIMATE when cut.

Optional scanners

Enable them in your user config, --config or the policy: scanners: { enabled: [gitleaks, osv-scanner] }. creep runs an installed scanner only from outside the repository, offline, with fixed arguments and no shell (ADR 0013):

  • gitleaks scans files (not git history) with --redact. The scanned repository cannot hide a finding: a root .gitleaksignore is not applied (creep scans every root entry on its own, the ignore file included, and says so on stderr and in the report). If a root directory holds its own .gitleaksignore, or the root has more than 256 entries, gitleaks is not run and the run is incomplete.
  • osv-scanner runs with --offline --no-ignore against a local database in OSV_SCANNER_LOCAL_DB_CACHE_DIRECTORY (download it once with osv-scanner --download-offline-databases); without one it is not run. The database must hold every ecosystem the repository's lockfiles use (for example Go for go.mod, npm for package-lock.json); if one is missing, osv-scanner is not run and the run is incomplete (missing_ecosystem_db).
  • semgrep is detected only; creep ships no local rules (ADR 0010).

Scanner findings are probable. A scanner that fails or times out makes the run incomplete.

Clone this wiki locally