Commit 4274da6
authored
Multiple fixes to improve detection (#1974)
* Allow vulnerability scans on arbitrary N|Solid refs
Known branches still use curated dependency lists, but unknown refs now fall
back to probing every tracked dependency definition and keeping only the ones
whose version parsers succeed against the checked-out tree.
This lets the scanner run against release branches and ad hoc refs without
having to pre-register each branch name in dependencies_per_branch.
Also document the workflow input as an arbitrary N|Solid branch/ref and mark
curated scans as incomplete when a curated dependency fails to resolve.
* Harden dependency resolution, npm audit edge cases, and reconciliation
Make arbitrary-ref dependency probing more tolerant of parser shape errors and
mark curated scans as incomplete when curated dependencies fail to resolve.
Tighten npm audit handling by:
- recording discovery failures and empty installed bundle trees as incomplete
- generating prod-only lockfiles with --package-lock-only when no lockfile is present
- retrying ENOLOCK recovery even when node_modules exists without a lockfile
- handling boolean bundleDependencies and avoiding duplicate installed-tree walks
- skipping invalid GitHub advisory specifiers or versions per advisory while
marking the scan incomplete
- making per-package GitHub advisory query failures non-fatal
- normalizing npm advisory IDs across modern and legacy audit payloads
- preferring CVE identifiers when GitHub exposes them
Preserve reconciliation when a vendored npm advisory changes from GHSA to CVE
by carrying alternate advisory identifiers in the scan payload and matching
existing issues through those aliases before create/close decisions.1 parent ba643e2 commit 4274da6
5 files changed
Lines changed: 1105 additions & 217 deletions
File tree
- .github/workflows
- dep_checker
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| 73 | + | |
| 74 | + | |
72 | 75 | | |
73 | 76 | | |
74 | 77 | | |
| |||
103 | 106 | | |
104 | 107 | | |
105 | 108 | | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
106 | 167 | | |
107 | 168 | | |
108 | 169 | | |
| |||
237 | 298 | | |
238 | 299 | | |
239 | 300 | | |
240 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
241 | 305 | | |
242 | 306 | | |
243 | 307 | | |
| |||
281 | 345 | | |
282 | 346 | | |
283 | 347 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | 348 | | |
289 | 349 | | |
290 | 350 | | |
| |||
296 | 356 | | |
297 | 357 | | |
298 | 358 | | |
299 | | - | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 359 | + | |
304 | 360 | | |
305 | 361 | | |
306 | 362 | | |
307 | 363 | | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
308 | 370 | | |
309 | 371 | | |
310 | 372 | | |
| |||
336 | 398 | | |
337 | 399 | | |
338 | 400 | | |
339 | | - | |
| 401 | + | |
340 | 402 | | |
341 | 403 | | |
342 | 404 | | |
| |||
0 commit comments