CRA Evidence CLI
CLI tools for local software checks and CRA Evidence workflows.
Use local commands without an account, or account commands to upload evidence and read release state. Both accept an SBOM file. The bundled engine can also generate an SBOM from a directory or container image. See Generating an SBOM.
The local checks are review aids, not an audit. Exit 0 does not prove compliance.
Install
pip install craevidence
pipx install craevidence
pipx is a good fit for command-line tools because it installs the package in
an isolated environment.
The installed command is:
craevidence --help
Python 3.12 or newer is required. Docker images and other install options are covered in the installation guide.
Documentation
| Page | Contents |
|---|---|
| Local commands | check, eol-check, egress-check, secrets-check, config-check, code-check, draft, assessment, db, and the offline template scaffold. |
| Account commands | Version creation, uploads, scan, status, risk assessment status, release lifecycle, profiles, validation, and verification. |
| CI/CD integration | GitHub Action, GitLab Component, Docker, Jenkins, OpenSSF Scorecard, and complyctl. |
| Installation | PyPI, Docker, container registries, and from source. |
| Troubleshooting | Common errors and fixes. |
| Releasing | Maintainer reference: channels, verification, tags, support policy. |
Local Check
craevidence check scans a directory, container image, or existing SBOM. It
needs no CRA Evidence account and does not upload your project.
craevidence check .
craevidence check --image ghcr.io/acme/app:1.4.2
craevidence check --sbom sbom.cdx.json
craevidence check . --fail-on known-exploited
By default, matching and enrichment can use network data sources. For a
no-network run, craevidence check --sbom sbom.cdx.json --offline uses only the
supplied JSON SBOM and a compatible local Grype database. It does not generate
an SBOM, use OSV.dev, or query live KEV/EPSS feeds. It rejects the
sbomqs quality options with exit 2. The detailed
local command reference
explains cache requirements, coverage, report fields and exit codes.
Local checks are review aids and CI gates. They are not an audit, and exit 0 does not prove compliance. Reports include What this local snapshot cannot tell you to keep the limits of a result visible.
Generating an SBOM
The bundled CRA Evidence engine generates CycloneDX JSON from a directory or
container image. upload-sbom --format spdx selects SPDX JSON. The CLI does not
generate XML.
craevidence check . --sbom-output sbom.cdx.json
craevidence upload-sbom --product my-product --version 1.0.0 --image ghcr.io/acme/app:1.4.2
craevidence upload-sbom --product my-product --version 1.0.0 --file sbom.cdx.json
--sbom-output retains a generated file for CI. Uploads generated with
--image or --source use a temporary file that is removed after upload.
Supported PyPI platform wheels and the Docker image bundle the engine. Editable
and source-distribution installs do not, and native Windows generation is not
supported. Uploading an existing file with --file needs no engine. See the
installation guide
for supported install options and
account commands
for accepted file formats.
Free Commands
These commands do not need CRA_EVIDENCE_API_KEY:
| Command | Purpose |
|---|---|
check |
Scan a directory, image, or SBOM and gate CI with --fail-on. |
validate-local |
Check a supplier's CycloneDX or SPDX JSON file offline and report the first invalid field. |
eol-check |
Flag end-of-life and support status from local SBOM components. |
egress-check |
Inventory external interfaces and data-egress indicators. |
secrets-check |
Scan the working tree for candidate hard-coded secrets. |
config-check |
Audit Dockerfile, Terraform, and Kubernetes files for insecure defaults. |
code-check |
On supported platforms, scan source code offline with the bundled, verified Opengrep engine and explicit CRA Evidence rules. |
draft |
Scaffold VEX, security.txt, advisory, risk-assessment, and threat-model drafts for review. |
compliance-as-code template --offline |
Create starter YAML from local input without an API key. |
assessment |
Scaffold an Annex I applicability matrix and gate CI on structured gaps. |
db update / db status |
Manage and inspect the local Grype vulnerability database cache. |
CI Examples
GitHub Actions:
jobs:
cra-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pipx install craevidence
- run: craevidence check . --fail-on known-exploited
GitLab CI:
cra-check:
image: python:3.12-slim
script:
- pip install craevidence
- craevidence check . --fail-on known-exploited
Account Commands
Account commands upload evidence or read release state. Authenticate with an API key or GitHub Actions OIDC identity, then use the command reference for product/version rules, scans, release gates and upload options.
export CRA_EVIDENCE_API_KEY=...
craevidence upload-sbom --product my-product --version 1.0.0 --file sbom.cdx.json
craevidence status --product my-product --version 1.0.0
For a hardware parts list, use upload-hbom.
It accepts a CycloneDX HBOM or a CSV. The guide also shows how to attach a
Markdown hardware note as technical documentation; Markdown is not parsed into
hardware components.
See Account commands for the full command reference. Product creation is disabled unless requested; manufacturer versions must be prepared in the web app.
Environment Variables
The main settings are CRA_EVIDENCE_API_KEY for account commands and
CRA_EVIDENCE_URL for a custom API. See the
account command guide
for identity and configuration, and the
CI/CD guide
for self-hosted API origins, CA bundles, and runner egress.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success. For local gates, no configured blocking finding was present in this local snapshot. |
| 1 | General error. |
| 2 | Authentication error. |
| 3 | API error. |
| 4 | Validation error. |
| 5 | File not found. |
| 6 | Configuration error. |
| 7 | security.txt validation failed. |
| 10 | Critical vulnerabilities found. |
| 11 | High vulnerabilities found. |
| 12 | Medium vulnerabilities found. |
| 13 | Low vulnerabilities found. |
| 14 | SBOM quality score below the configured threshold. |
| 15 | Strict local scan coverage is incomplete, or the local scan engine is unavailable. |
| 16 | License policy threshold exceeded. |
| 17 | Known-exploited vulnerabilities found. |
| 18 | Candidate secrets found. |
| 19 | Insecure-default config findings found. |
| 20 | CRA status is not ready when a status gate is enabled. |
| 21 | Structured evidence mapping was required but was not populated. |
| 22 | SBOM signature trust was required but verification was not trusted. |
| 23 | SBOM signing failed or no Sigstore OIDC identity was available. |
| 24 | CRA legal floor is met but the configured release policy is not. |
| 25 | Mandatory Annex I requirement is not addressed. |
| 26 | Annex I Part I(2) requirement is marked not-applicable without a justification. |
| 27 | Code-check findings at or above the configured --fail-on level. |
| 28 | Risk assessment review is still pending for the version (ra status --fail-on unreviewed, or ra review --non-interactive with unresolved review items). |
| 29 | Code-check parser coverage is degraded while an explicit --fail-on gate is enabled. This takes precedence over exit 27 because the result is incomplete. |
| 30 | A requested gate is inconclusive. For account gates, applicability or scan coverage may be incomplete, or requested coverage-gap data may be unavailable from the server. For local checks, KEV evidence was insufficient or the requested SBOM quality score was unavailable. The message names the cause. Resolve it or rerun when the required evidence is available. |
Exit 0 != compliance. Local output is a snapshot for review and CI policy, not a legal conclusion.
Data Sources
| Source | Use |
|---|---|
| FIRST EPSS | Exploit-probability enrichment. |
| CISA KEV | Known-exploited vulnerability enrichment. |
| OSV.dev | Open source vulnerability data when the OSV path is used. |
| CRA Evidence Grype engine | Local vulnerability matching and SBOM generation. The engine embeds Anchore Syft for package cataloguing. Stock Grype and a standalone Syft executable are not product engines. |
| endoflife.date | End-of-life and support-cycle data for eol-check. |
Support
- Website: https://craevidence.com
- Email: support@craevidence.com
License
MIT License. See the package license file for details.
Metadata
Release files for craevidence 4.13.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| craevidence-4.13.0.tar.gz | 848.4 kB | With provenance | Details for craevidence-4.13.0.tar.gz |
Built distributions (wheels)
Total release size: 452.4 MB
Release files / craevidence-4.13.0.tar.gz
| Download URL | craevidence-4.13.0.tar.gz |
|---|---|
| Size | 848.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fc63cfcdccbb127de370e59dc386be7df8f3d8a80584f78eebc2ea8210f96e1a
|
|
BLAKE2b-256 checksum How to use checksums |
2a82c1f171ee4baa193b93d7fb3edd4f839beedaa9f5be1b9fe45498b284a658
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / craevidence-4.13.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | craevidence-4.13.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 76.8 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
9819496124f81e8afca45822de711048a3b5b104008e9ea5ea38553f1a66f785
|
|
BLAKE2b-256 checksum How to use checksums |
2a3c00593840abc5e64a224e076de074dec6e7fbdb72c1e5f667a5edf3120e67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / craevidence-4.13.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | craevidence-4.13.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 75.4 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
b0d26355ca817d6f27c7b000701c0415a1349ba7a03ae019c549cccd5af36bee
|
|
BLAKE2b-256 checksum How to use checksums |
4ff05ce35618f767f3a71406921c478d7ca746b3858b0e2131fc5c8650c8ed43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / craevidence-4.13.0-py3-none-manylinux_2_17_x86_64.whl
| Download URL | craevidence-4.13.0-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 74.5 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
b65d22e13e898d1c0305cb554f0323d432769b489bf3c47c20e39615543a4940
|
|
BLAKE2b-256 checksum How to use checksums |
d18952182822ab9d95e25a7f71df4e3904aa70bbf34de9f4f2c6d3fdc8fcf90c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / craevidence-4.13.0-py3-none-manylinux_2_17_aarch64.whl
| Download URL | craevidence-4.13.0-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 73.0 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
990a2329eb6994fe78f9d5922d43d73ca67be820b337f27da49997a72623012e
|
|
BLAKE2b-256 checksum How to use checksums |
2147df711b82e8746a5b166b49f546204042ec4500d10eaf45b672bd169778c9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / craevidence-4.13.0-py3-none-macosx_12_0_x86_64.whl
| Download URL | craevidence-4.13.0-py3-none-macosx_12_0_x86_64.whl |
|---|---|
| Size | 77.4 MB |
| Tags | Python 3 macOS 12.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
a0c42ef9e323db3a67d18bc3efa71d0d5397a9c2f6aacfae553d4f86d562ee7d
|
|
BLAKE2b-256 checksum How to use checksums |
1fcf32ac85ceb857f329f95bd5eaccedb0da96bbaa30d14da7e77177cf5184c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logRelease files / craevidence-4.13.0-py3-none-macosx_12_0_arm64.whl
| Download URL | craevidence-4.13.0-py3-none-macosx_12_0_arm64.whl |
|---|---|
| Size | 74.5 MB |
| Tags | Python 3 macOS 12.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7ea6c068c030078b0fee8fa42c8d0a0475e7964b6dedb0b1db474fcb8f0a1494
|
|
BLAKE2b-256 checksum How to use checksums |
0b7a388fcf7735730d81376c5e66ba875afe4efe23f09f48c94cd142aedf6732
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logSecurity for craevidence 4.13.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 7 files in this release have been uploaded with provenance metadata.
Attestation for craevidence-4.13.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.