Generate an SPDX 2.3 JSON SBOM with Syft and validate spec conformance before publishing it as a compliance artifact

domain: spdx.dev · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Run syft <image-or-dir> -o spdx-json=sbom.spdx.json to produce an SPDX-format SBOM (Syft also supports spdx-tag-value output).
  2. Validate structural correctness and required fields against the SPDX schema using an spdx-tools validator or the SPDX Online Tools validator.
  3. If downstream consumers also need CycloneDX, generate that separately with syft -o cyclonedx-json rather than converting the SPDX file, since license and relationship modeling differs between the two formats.
  4. Publish the validated SBOM alongside the release artifact and record its checksum for later diffing between builds.
  5. When ingesting SBOMs produced by vendors, run the same validation step before loading them into a dependency-tracking system to catch malformed files early.

Known gotchas

Related routes

Produce a valid SPDX 2.3 SBOM with license expressions using Syft
anchore.com/syft · 5 steps · unrated
Generate an SPDX SBOM from a source code directory, not a container image, using Syft
github.com/anchore/syft · 5 steps · unrated
Convert an existing SBOM file between CycloneDX, SPDX, and Syft JSON formats using syft convert
oss.anchore.com · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans