bug(sbom): Trivy overwrites Applications
when multiple sbom files contain aggregated language type
#7851
Labels
kind/bug
Categorizes issue or PR as related to a bug.
Description
We already had similar case - when single sbom file contains multiple
Applications
for same aggregated language type (see #5812).This problem has been fixed.
But we have similar behavior when image contains multiple sbom files for same aggregated type (e.g. Java, Python, etc)
FilePath for these Applications is empty:
trivy/pkg/sbom/io/decode.go
Lines 179 to 183 in 88ba460
So when we fill
nestedMap
inApplyLayers
function - we overwrite Applications:trivy/pkg/fanal/applier/docker.go
Lines 121 to 125 in 69bf7e0
Example:
Discussed in #7846
The text was updated successfully, but these errors were encountered: