Replies: 1 comment
-
Hello @LesSyner We fixed this problem in #4941. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
I discovered that Cyclonedx-JSON SBOM files generated by trivy are not compliant with corresponding CycloneDX schema. I discovered it while trying to work with licenses and external tools which support it (Dependency-track). So in particular the issue is with license, where trivy-generated SBOM has following structure:
and compliant structure looks like this (generated by syft):
Desired Behavior
trivy produces SBOM files compliant with CycloneDX-JSON schema
Actual Behavior
trivy generates invalid SBOM JSON files
Reproduction Steps
Target
Container Image
Scanner
License
Output Format
CycloneDX
Mode
Standalone
Debug Output
Operating System
macOS Ventura 13.5
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions