Replies: 2 comments 4 replies
-
|
Looking at the code here in db.go, I would say that the method should return true in any case even if the metadata.json is still there and the database does not need to be renewed yet. Or is there something I am not aware about ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
It's an interesting edge case. Re-downloading the DB regardless might not be so straightforward as there's the case to be made for the air gap setup. In such a scenario what you have described might actually be the case if the user is supplying the DB themselves. |
Beta Was this translation helpful? Give feedback.
4 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
When the
trivy.dbhas been deleted but themetadata.jsonhas not, and the database has not yet expired, the database is not downloaded, wich may result in a failed scan. Steps and logs to reproduce:trivy.dbNote the debug messages:
As a result the database is not downloaded.
Desired Behavior
If the
trivy.dbcould not be found it should be downloaded regardless whethermetadata.jsonexpiration has not yet been reached.Actual Behavior
trivy-dbwas not downloadedReproduction Steps
Target
Container Image
Scanner
Vulnerability
Output Format
None
Mode
Standalone
Debug Output
Operating System
Fedora
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions