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.
More on Registries, Tagging & Supply Chain
What is a good image tagging strategy for production?BeginnerWhy is deploying by digest better than by tag?IntermediateHow do you enable immutable tags and lifecycle rules in ECR?IntermediateHow does ECR handle scanning and replication?IntermediateHow do you give an EKS node or CI job access to ECR with least privilege?IntermediateDocker Hub vs ECR vs GHCR vs Harbor: how do you choose?Intermediate