Trivy fails with `FATAL Fatal error init error: DB error: failed to download vulnerability DB ... TOOMANYREQUESTS: retry-after`
IntermediateTroubleshootingCaching, Artifacts, Builds & Scans
Answer
Likely causes → Rate limiting on the default DB registry (GHCR) shared across many runners.
Diagnose → Look for TOOMANYREQUESTS or 429 in the Trivy output.
Fix → Use the mirror and cache the DB:
env:
TRIVY_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-db:2
TRIVY_JAVA_DB_REPOSITORY: public.ecr.aws/aquasecurity/trivy-java-db:1
plus actions/cache on ~/.cache/trivy keyed by date.
Prevent → A nightly job that refreshes a cached DB, or an internal mirror.
More on Caching, Artifacts, Builds & Scans
`Cache not found for input keys: npm-Linux-3f9a...` on every single run.Beginner`Failed to save: Unable to reserve cache with key npm-Linux-3f9a..., another job may be creating this cache.`BeginnerA cache restores but the build is still slow and reinstalls everything.Intermediate`Error: Failed to CreateArtifact: Received non-retryable error: Failed request: (409) Conflict: an artifact with this name already exists on the workflow run`Beginner`Error: Unable to download artifact(s): Artifact not found for name: build`Beginner`Warning: No files were found with the provided path: coverage/. No artifacts will be uploaded.` but tests ran.Beginner