Commit 7cf8324
Trivy: use GHCR DB source, add ECR fallback, update codeql-action to v4 (#22)
## 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](https://claude.com/claude-code)
---------
Co-authored-by: Paradoxbound <paradoxbound@paradoxbound.org>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent a220efa commit 7cf8324
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
149 | 151 | | |
150 | 152 | | |
151 | 153 | | |
| |||
155 | 157 | | |
156 | 158 | | |
157 | 159 | | |
158 | | - | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
165 | 167 | | |
166 | 168 | | |
167 | 169 | | |
| 170 | + | |
| 171 | + | |
168 | 172 | | |
169 | 173 | | |
170 | 174 | | |
| |||
489 | 493 | | |
490 | 494 | | |
491 | 495 | | |
| 496 | + | |
| 497 | + | |
492 | 498 | | |
493 | 499 | | |
494 | 500 | | |
| |||
498 | 504 | | |
499 | 505 | | |
500 | 506 | | |
501 | | - | |
| 507 | + | |
502 | 508 | | |
503 | 509 | | |
504 | 510 | | |
| |||
508 | 514 | | |
509 | 515 | | |
510 | 516 | | |
| 517 | + | |
| 518 | + | |
511 | 519 | | |
512 | 520 | | |
513 | 521 | | |
| |||
0 commit comments