Repository navigation
Replies: 2 comments 6 replies
|
Hello @wkoot These components were found from different lock files:
That is why we create 2 components for regards, Dmitriy |
6 replies
|
I would like to add that this is now also producing SBOM files that are no longer accepted by Dependency-Track
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Description
I obtain the following two components which only differ by their
bom-ref, within a single scan.Only the first occurrence is listed in the bom dependencies, in both
refanddependsOnfields.Not sure if (and if so, how) this is related to #7337, so opened as a separate discussion.
This scan and outputfile was produced with the docker image
aquasec/trivy:0.55.1as follows:Component 1:
{ "bom-ref": "94eaf415-366a-4b26-a674-b420104ca7c1", "type": "library", "name": "rustc-hash", "version": "1.1.0", "purl": "pkg:cargo/[email protected]", "properties": [ { "name": "aquasecurity:trivy:LayerDiffID", "value": "sha256:8b5007c54c56542ac66ec8b852df39a01ec8b91d25a6acfad20f06a22b18c120" }, { "name": "aquasecurity:trivy:LayerDigest", "value": "sha256:8d5593650f650634958fa2a500069bc1ec634d9d575347f35175e51a5a84e1a3" }, { "name": "aquasecurity:trivy:PkgID", "value": "[email protected]" }, { "name": "aquasecurity:trivy:PkgType", "value": "cargo" } ] }Component 2:
{ "bom-ref": "8b603731-118f-42a7-9190-aa409f64c2f3", "type": "library", "name": "rustc-hash", "version": "1.1.0", "purl": "pkg:cargo/[email protected]", "properties": [ { "name": "aquasecurity:trivy:LayerDiffID", "value": "sha256:8b5007c54c56542ac66ec8b852df39a01ec8b91d25a6acfad20f06a22b18c120" }, { "name": "aquasecurity:trivy:LayerDigest", "value": "sha256:8d5593650f650634958fa2a500069bc1ec634d9d575347f35175e51a5a84e1a3" }, { "name": "aquasecurity:trivy:PkgID", "value": "[email protected]" }, { "name": "aquasecurity:trivy:PkgType", "value": "cargo" } ] }Desired Behavior
Components 1 and 2 should be deduplicated, only leaving a single component - to which the vulnerabilities and dependencies are linked.
Actual Behavior
Two duplicate components were produced, which only differ from each other in their
bom-ref.Reproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
CycloneDX
Mode
Standalone
Debug Output
Operating System
Docker version 26.1.0, build 9714adc, Rocky Linux release 8.9 (Green Obsidian)
Version
# trivy --version Version: 0.55.1Checklist
trivy clean --allAll reactions