Commit 9482c6a
committed
ci(docker): block builds on HIGH/CRITICAL CVEs via Trivy
Adds a Trivy filesystem scan before the build step. Fails the workflow
on any HIGH/CRITICAL vulnerability that already has a fix available
(`ignore-unfixed: true` keeps the gate actionable), and on any leaked
secret or misconfig the scanner flags.
Placed before the build so a vulnerable image is never pushed to GHCR
or Docker Hub.1 parent 2e3ba12 commit 9482c6a
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
30 | 44 | | |
31 | 45 | | |
32 | 46 | | |
| |||
0 commit comments