CycloneDX or SPDX: which do you choose?
IntermediateScenarioSupply Chain Security
Answer
Situation read → Both are accepted standards. The choice depends on consumers.
What I'd do →
- Use CycloneDX for security use cases: native VEX, services, and wide support in Dependency-Track and Grype.
- Use SPDX where licence compliance or regulatory submissions require it (ISO/IEC 5962).
- Generate both if needed;
syft app:1.0 -o cyclonedx-json -o spdx-json. - Validate with the format's schema and a tool like
sbomqs.
Why → Pick by consumer requirements, not preference.
Interview tip → Both are fine; the real question is completeness and accuracy.
More on Supply Chain Security
What is an SBOM, and at which point in the pipeline do you generate it?BeginnerA customer asks for an SBOM for your product. What do you give them?BeginnerHow do you sign container images in GitHub Actions without managing private keys?IntermediateYou signed images in CI. How do you make sure the cluster only runs signed images?IntermediateLeadership wants "SLSA compliance". What do you propose?IntermediateWhat is typosquatting and how do you protect developers from it?Beginner