scout_sbom
Generate a Software Bill of Materials (SBOM) for an image to inventory its packages. Supports SPDX, CycloneDX, JSON, or plain-text list formats.
Instructions
Generate a Software Bill of Materials (SBOM) for an image.
Package inventory only — scout_cves adds vulnerability matching on top. SBOMs can be large;
captured stdout is subject to MAX_CLI_OUTPUT_BYTES and may be truncated for big images. If
that's a concern, run docker scout sbom -o file.json … on the host and load the file
separately.
Does not raise on a non-zero CLI exit (a missing scout plugin still raises) — inspect
raw.stderr.
args:
image - Image reference
format - SBOM format: "spdx" (default, SPDX JSON), "cyclonedx" (CycloneDX JSON),
"json" (Scout's native JSON), "list" (plain-text package list)
platform - Platform of the image to analyze
returns: dict - {"format", "result", "raw": }. result is a parsed dict when
format is "spdx"/"cyclonedx"/"json" and stdout parses cleanly; for "list" or a
parse failure it's the raw text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | Yes | ||
| format | No | spdx | |
| platform | No |