Interview Prep/Docker/Registries, Tagging & Supply Chain

How do you generate and use SBOMs in a pipeline?

IntermediateProductionRegistries, Tagging & Supply Chain
Answer
syft app:1.4.2 -o spdx-json > sbom.spdx.json     # or trivy image --format cyclonedx
grype sbom:sbom.spdx.json --fail-on high

Attach to the image with cosign attest --type spdxjson or buildx --sbom=true, and ingest into Dependency-Track so a new CVE can be matched against everything deployed without rescanning images.

All Docker questions Roadmap: Docker & containers

More on Registries, Tagging & Supply Chain