Replies: 2 comments
-
So after I wrote this all up my colleague mentioned #7646 and aquasecurity/trivy-java-db#44. Good to know it is fixed already in #7652! |
Beta Was this translation helpful? Give feedback.
-
I get this issue with latest version v0.65.2
|
Beta Was this translation helpful? Give feedback.
-
Description
Trivy logs that downloading the Java DB was successful:
This matches with these lines:
But it always throws an error:
Which matches with line:
Thus always failing the download even when it was successful. There seems to be a guard missing against
nil
onpkg/javadb/client.go#110
.Desired Behavior
The error should only occur when all downloads have failed.
Actual Behavior
The error occured when a download was successful.
Reproduction Steps
trivy image ${IMAGE_VERSION} --format json --output trivy_cve_results_image.json --no-progress --debug
Target
Container Image
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
Ubuntu 22.04
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions