Commit bb5e7ac
committed
Scan vendored npm via its installed bundle tree
Special-case deps/npm to avoid npm audit on npm's workspace source checkout.
When deps/npm has a valid installed tree, run npm ls --omit=dev --all --json,
walk the packages reachable from bundleDependencies, and query GitHub
advisories using exact installed versions.
This keeps the scan aligned with the vendored npm payload instead of trying to
synthesize a lockfile from the workspace checkout.
Also:
- normalize GitHub advisory ranges such as '= 8.0.0' before version matching
- prefer CVE identifiers when GitHub exposes one, otherwise fall back to GHSA
- add regression coverage for the deps/npm path.1 parent b59f203 commit bb5e7ac
3 files changed
Lines changed: 398 additions & 155 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
0 commit comments