scout_sbom
Generate a Software Bill of Materials (SBOM) for a container image, supporting SPDX, CycloneDX, JSON, or 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 or a timeout still raises) - inspect
raw.stderr.
Args: format: "spdx" (default, SPDX JSON), "cyclonedx" (CycloneDX JSON), "json" (Scout's native JSON), or "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 |