Open alfredodeza opened 3 years ago
When the GRYPE_DB_UPDATE_URL
environment variable is incorrectly set, we got the following error message which directs the user to update the database which would not solve the issue.
✔ Vulnerability DB [no update available]
New version of grype is available: 0.50.2
[0000] WARN unable to check for vulnerability database update
1 error occurred:
* failed to load vulnerability db: vulnerability database is corrupt (run db update to correct): database metadata not found: ~/Library/Caches/grype/db/3
What happened was in curator.go, a check was made to see if there was a vulnerability database update. After determining that there was not, it attempts to load the vulnerability database which is not possible as the GRYPE_DB_UPDATE_URL
was incorrectly set and there is no database to load.
There's a related PR, though not exactly this issue: https://github.com/anchore/grype/pull/1247
What happened: While running CI tests, got problems when the database check ran:
What you expected to happen: It seems that the error involves several different problems, not sure which one is to blame for the underlying issue. These is a list of things (depending on what the problem is) I would expect:
How to reproduce it (as minimally and precisely as possible): Re-running the Github action for the unit tests resolved this, can't really see how to reproduce it
Anything else we need to know?: This was hit while trying to get a Github workflow running for the
v2-schema
branch that is bumping the new schema version (2)Environment:
grype version
:cat /etc/os-release
or similar):