Replies: 2 comments 1 reply
-
Here you can find a |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hello @juan131 Created #5812 for this task. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
SBOM scanning with more than one Python applications result on inconsistent reported vulns.
Given a SPDX file with two Python apps (such as the one shown below) each of them containing dozens of packages, Trivy reports a different number of vulnerabilities on consecutive executions.
The problem seems be related with setting the application file path with an empty string for these apps:
When the nested map below is populated at
ApplyLayers
, given both apps don't have a file path, the resulting "key" used in the map is the same/type:python-pkg
, therefore the last app extracted from the layer overwrites the previous one:As a consequence, the info about the packages included on that application gets lost.
Desired Behavior
Consistency on reported vulnerabilities.
Actual Behavior
Number of reported vulnerabilities differs between executions.
Reproduction Steps
Run the Trivy scanner several times to receive different amount of reported vulnerabilities:
Target
SBOM
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Irrelevant
Operating System
macOS sonoma
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions