Commit 152fe3e
ci(security): skip osv-scanner when there are no manifests
osv-scanner exits non-zero with "No package sources found, --help for
usage information" when run against a tree with no dependency
manifests. That's what happened on common's main: no go.mod, so the
scan failed even though there was nothing to find.
Gate the osv-scanner steps behind a go.mod detection, mirroring the
govulncheck and license-policy jobs. If the org ever adopts non-Go
projects, broaden the detector to match package.json / Cargo.toml /
requirements.txt.
Refs QUA-7.
Co-Authored-By: Paperclip <[email protected]>1 parent 94d71e1 commit 152fe3e
1 file changed
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
61 | 75 | | |
| 76 | + | |
62 | 77 | | |
63 | 78 | | |
64 | 79 | | |
65 | 80 | | |
66 | 81 | | |
67 | 82 | | |
| 83 | + | |
68 | 84 | | |
69 | 85 | | |
70 | 86 | | |
| 87 | + | |
71 | 88 | | |
72 | 89 | | |
73 | 90 | | |
| |||
0 commit comments