-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fatal error TOOMANYREQUESTS during download of vuln db #82
Comments
Hello! I have the same problem. I found this recent PR 440 which pushes db updates to the Amazon container registry in addition to GitHub but I'm not sure this will fix the issue since the Amazon's policy limits unauthenticated pull to 1 per second: Would it be possible to catch this error within the task and expose a new variable allowing to specify the number of retries to attempt in case of a "rate limit" error ? I cannot use the |
As a workaround, I've created a pipeline which fetches the trivy databases
and publishes it as pipeline build artifact. This can then be consumed via
|
I just stumbled upon the fact that trivy supports from v0.56 a csv list of repositories for download which works perfectly. Those mirrors are also published by trivy:
This will do an auto fallback to the ecr repository if ghcr fails |
When trying to scan container image in the pipeline, the trivy task fails with that error:
It is quite similar to #80, but the proposed fix doesn't help. After 2-3 retries, it can download the vuln db.
The text was updated successfully, but these errors were encountered: