sbom-diff-sentinel
diff SBOMs for drift
SBOM diff gate: compares CycloneDX 1.4-1.6 / SPDX 2.3 SBOMs or git refs, reports added, removed, upgraded and downgraded components plus licence, supplier and hash changes, checks OSV.dev (cached.
- 32/week on npm
- 2★
- MIT
- v1.1.0
- Supply Chain
npx sbom-diff-sentinelRead the full README on GitHub (opens in a new tab)View on npm (opens in a new tab)
sbom-diff-sentinel
From the README
sbom-diff-sentinel compares two SBOMs, or your project at a git ref against the working tree. It reports components that were added, removed, upgraded or downgraded, plus license, supplier and hash changes. It checks the added and changed components against OSV.dev and splits the results into new and fixed vulnerabilities, each with a severity. Then it applies a policy: fail on new vulnerabilities at or above a severity, downgrades, tampered hashes or oversized changes. Licence changes are reported (with license-sentinel categories) but not judged: put your licence policy in license-sentinel.
npx sbom-diff-sentinel --base origin/main # project at origin/main vs working tree
npx sbom-diff-sentinel base.cdx.json head.spdx.json # two SBOM files (formats can be mixed)
npx sbom-diff-sentinel base.cdx.json # SBOM file vs the current project
npx sbom-diff-sentinel --generate bom.cdx.json # write a CycloneDX 1.5 SBOM for the projectWhere we use it
Related packages
Supply Chain
- supply-chain-sentinel
one supply-chain gate
- dead-deps-gauge
find unused dependencies
- dockerfile-sentinel
lint Dockerfiles for risk
- dotenv-sentinel
validate .env files