Skip to content

Trivy: use GHCR DB source, add ECR fallback, update codeql-action to v4#22

Merged
paradoxbound merged 2 commits into
mainfrom
feature/trivy-db-fix
Feb 26, 2026
Merged

Trivy: use GHCR DB source, add ECR fallback, update codeql-action to v4#22
paradoxbound merged 2 commits into
mainfrom
feature/trivy-db-fix

Conversation

@paradoxbound

Copy link
Copy Markdown
Owner

Summary

Fixes the post-merge pipeline failure from PR #20 where mirror.gcr.io/aquasec/trivy-db returned 404, preventing v2.5.2 from being published.

  • Trivy DB primary + fallback: Sets TRIVY_DB_REPOSITORY=ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db on all four Trivy steps. Trivy tries GHCR first, falls back to AWS ECR Public if unavailable, before failing.
  • codeql-action/upload-sarif v3 → v4: Addresses the deprecation warning logged during the failed run (v3 deprecated December 2026).

Test plan

  • Post-merge scan job completes successfully with Trivy DB downloaded from GHCR
  • SARIF uploaded to Security tab
  • merge job runs and v2.5.2 tags published correctly

🤖 Generated with Claude Code

Paradoxbound and others added 2 commits February 26, 2026 20:29
The GCR mirror (mirror.gcr.io/aquasec/trivy-db) returns 404 intermittently.
Set TRIVY_DB_REPOSITORY=ghcr.io/aquasecurity/trivy-db on all four Trivy steps
(two trivy-action SARIF steps, two run: blocking steps) to bypass the mirror.

Also updates github/codeql-action/upload-sarif from v3 to v4 ahead of the
December 2026 v3 deprecation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
If ghcr.io/aquasecurity/trivy-db is unavailable, Trivy will fall back to
public.ecr.aws/aquasecurity/trivy-db before failing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@paradoxbound paradoxbound merged commit 7cf8324 into main Feb 26, 2026
11 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