CycloneDX output can contain duplicate dependsOn items scanning Alpine images using option --removed-pkgs #7877
Closed
rutger-gerritsen
started this conversation in
Bugs
Replies: 1 comment
-
Hello @rutger-gerritsen Created #7886 for this issue. 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
Currently, the CycloneDX output generated by Trivy can contain duplicate dependsOn items scanning Alpine images using option --removed-pkgs. Which causes validation against the JSON schema to fail.
Only Trivy v0.53.0 and higher has this issue. With Trivy v0.52.2 it works fine.
Desired Behavior
CycloneDX BOMs generated by Trivy should not fail schema validation. dependsOn should not contain duplicate items.
Actual Behavior
CycloneDX BOMs generated by Trivy fail schema validation.
Reproduction Steps
Target
Container Image
Scanner
None
Output Format
CycloneDX
Mode
Standalone
Debug Output
Operating System
Windows 11
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions