CycloneDX / cyclonedx-cli

CycloneDX CLI tool for SBOM analysis, merging, diffs and format conversions.
https://cyclonedx.org/
Apache License 2.0
317 stars 63 forks source link

Unable to Validate CycloneDX Format Versions 1.5 and 1.6 with ModelCard and Data Elements #403

Open cbsMartin opened 2 months ago

cbsMartin commented 2 months ago

The latest release of the CycloneDX CLI tool is unable to validate SBOMs conforming to CycloneDX format versions 1.5 and 1.6 that include the modelCard and data elements. These versions of the format introduce new features and structures, such as the modelCard and data elements, which are not being properly recognized or validated by the CLI tool. The validation fails even though the SBOM adheres to the CycloneDX specification

Link to the CycloneDX 1.5 modelCard Link to the CycloneDX 1.5 data Link to the CycloneDX 1.6 modelCard Link to the CycloneDX 1.6 data

andreas-hilti commented 1 month ago

@cbsMartin Can you please provide a sample BOM that fails validation? (All that the cli does internally is to validate the json file against the corresponding json schema; thus, I'm a bit surprised if this is indeed the case.) What kind of validation messages do you get? (In particular, there are also tests that validate for instance valid-machine-learning-1.6.json.)