dentsusoken / build-and-scan-image

Build and scan Dockerfile and container image
MIT License
3 stars 3 forks source link

Trivy failed to download artifact #195

Closed ShibataTakao closed 3 weeks ago

ShibataTakao commented 3 weeks ago

Example

2024-10-28T01:31:19Z    WARN    'TRIVY_VULN_TYPE' is deprecated. Use 'TRIVY_PKG_TYPES' instead.
2024-10-28T01:31:19Z    INFO    [vulndb] Need to update DB
2024-10-28T01:31:19Z    INFO    [vulndb] Downloading vulnerability DB...
2024-10-28T01:31:19Z    INFO    [vulndb] Downloading artifact...    repo="ghcr.io/aquasecurity/trivy-db:2"
2024-10-28T01:31:19Z    ERROR   [vulndb] Failed to download artifact    repo="ghcr.io/aquasecurity/trivy-db:2" err="OCI repository error: 1 error occurred:\n\t* GET https://ghcr.io/v2/aquasecurity/trivy-db/manifests/2: TOOMANYREQUESTS: retry-after: 747.501µs, allowed: 44000/minute\n\n"
2024-10-28T01:31:19Z    FATAL   Fatal error init error: DB error: failed to download vulnerability DB: OCI artifact error: failed to download vulnerability DB: failed to download artifact from any source
ShibataTakao commented 3 weeks ago

ref: https://github.com/aquasecurity/trivy/discussions/7668