TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/NetRiseInc/provenance-cli/llms.txt
Use this file to discover all available pages before exploring further.
provenance check and provenance scan sbom commands return semantic exit codes that map directly to policy outcomes. This makes it easy to gate CI/CD pipelines without parsing output.
Exit code reference
| Code | Name | When it occurs |
|---|---|---|
0 | PASS | All checks passed — only warn and info findings (or no findings) |
1 | DENY | At least one deny rule was triggered |
2 | REVIEW | No deny findings, but at least one review rule was triggered |
3 | ERROR | Runtime error — network failure, authentication error, SBOM parse error, etc. |
Action precedence
When multiple findings exist, the highest-severity exit code wins:- If any
deny→ exit1(even if there are alsoreviewfindings) - If only
review→ exit2 - If only
warn/info/allow→ exit0
Using exit codes in shell scripts
Using exit codes in GitHub Actions
Treating review as a hard failure
If you wantreview findings to also block the pipeline, check for both codes:
Policy action mapping
| Policy action | Exit code contributed |
|---|---|
deny | 1 |
review | 2 |
warn | 0 |
info | 0 |
allow | 0 (exempts package from deny/review/warn) |
allow rules are evaluated first. A package that matches an allow rule is fully exempted — it will not contribute a non-zero exit code even if it also matches deny or review rules.Policy engine
Learn how to write policy rules with deny, review, and allow actions.
GitHub Actions
Integrate exit codes into GitHub Actions workflows.