Commit 60b21f7
authored
ci: scan the distribution tree for known vulnerabilities (#851)
Adds a Trivy scan of the built app tree, using the reusable workflow. It runs on
pushes and pull requests and, more importantly, weekly: most findings appear when
a CVE is published against code that was released long ago, with no repository
activity to trigger CI.
The scan fails on HIGH and CRITICAL findings that have a fix available.
It scans the unpacked distribution tree with `trivy rootfs` rather than the
checkout with `trivy fs`, because the fs scanner does not run Trivy's gobinary
analyzer and dependencies only exist after the build.
Signed-off-by: Thomas Müller <[email protected]>1 parent 200eef9 commit 60b21f7
1 file changed
Lines changed: 28 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
0 commit comments