Skip to content
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

CI complains hitting rate limit on trivy scan #700

Open
ekneg54 opened this issue Nov 8, 2024 · 3 comments
Open

CI complains hitting rate limit on trivy scan #700

ekneg54 opened this issue Nov 8, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ekneg54
Copy link
Collaborator

ekneg54 commented Nov 8, 2024

Expected behavior
the CI Containerbuilds should complete with trivy scan

Current behavior
sometimes they does not complete because of a rate limit.
this behavior is a known "bug" ... see: aquasecurity/trivy#7668

image

Steps to reproduce

  • run ci pipeline frequently

Possible solution

  • cache trivy db for 1 day in the pipeline to reduce requests
@ekneg54 ekneg54 added the bug Something isn't working label Nov 8, 2024
@ekneg54
Copy link
Collaborator Author

ekneg54 commented Nov 8, 2024

@P4sca1 could you have a look on that?

@P4sca1
Copy link
Collaborator

P4sca1 commented Nov 8, 2024

There is a Trivy PR which aims to solve this issue by providing additional fallback registries: aquasecurity/trivy#7679.

In the meantime, the following workaround might help: aquasecurity/trivy#7668 (reply in thread).

We are already caching the trivy db for one day, which should help after the first Trivy pipeline of the day succeeded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants
@P4sca1 @ekneg54 and others