Skip to content

ci: fix Trivy DB download failure#45

Merged
reverentgeek merged 1 commit intomainfrom
dn-fix-trivy-db-download
Feb 26, 2026
Merged

ci: fix Trivy DB download failure#45
reverentgeek merged 1 commit intomainfrom
dn-fix-trivy-db-download

Conversation

@reverentgeek
Copy link
Collaborator

Summary

  • Pin aquasecurity/trivy-action to @0.28.0 instead of @master for stability
  • Set TRIVY_DB_REPOSITORY to ghcr.io/aquasecurity/trivy-db:2 to fix 404 errors from mirror.gcr.io
  • Applies to both the SARIF and table summary Trivy steps in the Docker scan job

Context

The security scan was failing because mirror.gcr.io returned a 404 when Trivy tried to download its vulnerability database. The ghcr.io registry is the primary source maintained by Aqua Security and is more reliable.

Test plan

  • Verify the security workflow runs successfully on this PR
  • Confirm Trivy downloads the vulnerability DB without errors
  • Confirm SARIF results are uploaded to GitHub

🤖 Generated with Claude Code

The mirror.gcr.io registry was returning 404 for the Trivy vulnerability
DB artifact, breaking the Docker image scan job. Pin trivy-action to
v0.28.0 and explicitly set TRIVY_DB_REPOSITORY to the primary ghcr.io
source.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@reverentgeek reverentgeek merged commit 7499f16 into main Feb 26, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant