Debian Codegraph @

docs/source/commands/delta-description.inc

raw
1 The ``delta`` command compares two SBOMs and produces a new SBOM containing only the
2 components that are present in the target SBOM but not in the base (reference) SBOM.
3
4 The most common use-case is identifying new or added components between two builds, images, or
5 distribution states (for example, comparing a previous release SBOM against a newer one),
6 including filtering out already license-cleared components to generate an SBOM containing only
7 components pending license clearance.
8
9 The comparison is directional:
10
11 * Base SBOM – treated as the reference
12 * Target SBOM – treated as the new or updated SBOM
13
14 Given the following structure:
15
16 Base SBOM
17
18 .. code-block::
19
20 base-root
21 |- binary-dep1
22 | |- source-dep1
23 |- binary-dep2
24
25 Target SBOM
26
27 .. code-block::
28
29 target-root
30 |- binary-dep1
31 | |- source-dep1
32 |- binary-dep2
33 |- binary-dep3
34 | |- source-dep3
35
36 Running delta would produce:
37
38 .. code-block::
39
40 delta-doc-root
41 |- binary-dep3
42 | |- source-dep3
43
44 Components are considered the same if they share the same PURL (Package URL). Only components
45 that are new in the target SBOM, along with their nested dependencies, are included in the
46 resulting SBOM.