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

Fix TOOMANYREQUESTS failure in Trivy Action #4318

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

ty-dc
Copy link
Collaborator

@ty-dc ty-dc commented Nov 26, 2024

Thanks for contributing!

Notice:

What issue(s) does this PR fix:

Fixes #4313

Special notes for your reviewer:

@ty-dc
Copy link
Collaborator Author

ty-dc commented Nov 26, 2024

CI 失败

2024-11-26T03:07:44.881Z	FATAL	init error: DB error: failed to download vulnerability DB: OCI artifact error: OCI artifact error: OCI repository error: GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 658.601µs, allowed: 44000/minute
make: *** [Makefile:471: lint_image_trivy] Error 1
error, image spiderpool-agent-race:e206119b198c4eba368319fcda84fad211d9e82a is bad
spiderpool-controller-race
sha256:1ae7599cee5e025496b5c208cee82e8e1491c8be342f76637886699a1e7a005a
---------trivy checkout image spiderpool-controller-race:e206119b198c4eba368319fcda84fad211d9e82a --------------------
2024-11-26T03:07:47.439Z	INFO	Need to update DB
2024-11-26T03:07:47.439Z	INFO	DB Repository: ghcr.io/aquasecurity/trivy-db
2024-11-26T03:07:47.439Z	INFO	Downloading DB...
2024-11-26T03:07:47.578Z	FATAL	init error: DB error: failed to download vulnerability DB: OCI artifact error: OCI artifact error: OCI repository error: GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 451.117µs, allowed: 44000/minute

该 PR 修复的就是该问题。CI 跑的用的旧的 workflow

@weizhoublue weizhoublue merged commit 0044fe0 into spidernet-io:release-v1.0 Nov 27, 2024
54 of 55 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants