enrich command

The command enriches an SBOM with additional information retrieved from non-local sources. Internally the infrastructure from the download command is used. This means binary and source packages are retrieved from the snapshot mirror. If no information is missing on a package the download will be skipped.

Note

This command might require internet access, depending on the resolver that is used.

Processes an SBOM and enriches all its package information.

usage: debsbom enrich [-h] [-t {cdx,spdx}] [--outdir OUTDIR]
                      [--resolver {debian-snapshot}] [--validate]
                      [--checksums | --no-checksums]
                      [--download-location | --no-download-location]
                      [--omnibor-id | --no-omnibor-id]
                      [--swh-id | --no-swh-id]
                      bomin [bomout]

Positional Arguments

bomin

sbom file(s) to process for ‘bomin’. Use ‘-’ to read from stdin

bomout

filename for output (default: ‘enriched’). Use ‘-’ to write to stdout

Default: 'enriched'

Named Arguments

-t, --sbom-type

Possible choices: cdx, spdx

SBOM type to process (default: auto-detect), required when reading from stdin

--outdir

directory to store downloaded files

Default: 'downloads'

--resolver

Possible choices: debian-snapshot

resolver to use to find upstream packages (default: ‘debian-snapshot’)

Default: 'debian-snapshot'

--validate

validate generated SBOM (only for SPDX)

Default: False

--checksums, --no-checksums

add checksums to packages (default: True)

Default: True

--download-location, --no-download-location

add download location to packages (default: True)

Default: True

--omnibor-id, --no-omnibor-id

add omnibor artifact IDs to packages (default: True)

Default: True

--swh-id, --no-swh-id

add swh IDs to packages (default: True)

Default: True