Commit d871935
authored
ci: scan the distribution tree for known vulnerabilities (#725)
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 <1005065+DeepDiver1975@users.noreply.github.com>1 parent aa96a1a commit d871935
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