Compare two CycloneDX 1.4-1.6 JSON SBOMs and report added, removed, upgraded, downgraded components and license changes by purl. Use when the user has two SBOMs, asks what a release changed, or wants a CI gate on dependency changes.
97%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Low
Low-risk findings worth noting
Compare a base SBOM with a head SBOM (CycloneDX JSON) and explain what changed in the dependency tree. It runs locally with Python 3.10+ (standard library only); no package install and no network access are needed.
"bomFormat": "CycloneDX" and
specVersion 1.4, 1.5 or 1.6.python3 scripts/sbom_diff.py base.json head.json--format json. For a gate add
--fail-on added,downgrade (any of: added, removed, upgrade, downgrade, changed,
license).Exit codes: 0 no failing category, 1 at least one --fail-on category is not empty, 2
invalid input or flags (the reason is printed to stderr).
Components, including nested ones, are keyed by normalised package URL (qualifiers and subpath
dropped, PEP 503 normalisation for pypi). Without a purl the key is group/name or name.
metadata.component is never compared. A key with several versions on one side is a version set,
reported as changed. Version order follows SemVer 2.0.0; versions that cannot be compared are
reported as changed. See references/matching-rules.md.
Project source: https://github.com/Trysac/u069-sbom-diff