trivy fills CycloneDX "dependsOn" sets with duplicates in CycloneDX SBOMs #7922
Closed
stohrendorf
started this conversation in
Bugs
Replies: 2 comments 1 reply
-
Hello @stohrendorf |
Beta Was this translation helpful? Give feedback.
1 reply
-
duplicate of #7802 |
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
When importing some CycloneDX SBOMs generated by trivy into DependencyTrack, the validation of DependencyTrack fails sometimes, reporting duplicates in the
dependsOn
elements. According to the CycloneDX spec, this should not be the case.However, from a glance at the SBOM, it seems as if trivy tries to de-duplicate some components, leading to duplicate graph edges in the dependency graph. Indicator for this theory is that some transitive (and duplicate) dependencies are not referenced at all within the dependency graph.
Desired Behavior
Items in the
dependsOn
element are unique.Actual Behavior
Items in the
dependsOn
element are not unique, which violates the spec. This affects at leastfs
andimage
scans.Reproduction Steps
Target
None
Scanner
Vulnerability
Output Format
CycloneDX
Mode
Client/Server
Debug Output
Operating System
Multiple Linux flavours
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions