Commit feb5e49
fix: disable osv-scanner Go call analysis to prevent OOM kills (#457)
osv-scanner runs govulncheck based Go call analysis by default. That step type
checks the whole build graph and requires more than 8GB of memory on moderately
sized modules, which gets the scan OOM killed with exit code 137.
Measured with osv-scanner v2.5.1 against a 346 package go.mod:
osv-scanner --lockfile go.mod 7.6GB 105s
osv-scanner --no-call-analysis=go --lockfile go.mod 73MB 1.9s
The reported vulnerabilities are identical with and without call analysis, as it
only adds reachability annotations that this action does not act on.
Set OSV_SCANNER_CALL_ANALYSIS to true to re-enable it.
Closes #456
Co-authored-by: Ergin Akin <eakin@scubergphilis.com>1 parent 128db79 commit feb5e49
2 files changed
Lines changed: 29 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
75 | 79 | | |
76 | 80 | | |
77 | 81 | | |
| |||
375 | 379 | | |
376 | 380 | | |
377 | 381 | | |
| 382 | + | |
378 | 383 | | |
379 | 384 | | |
380 | 385 | | |
| |||
398 | 403 | | |
399 | 404 | | |
400 | 405 | | |
| 406 | + | |
401 | 407 | | |
402 | 408 | | |
403 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
42 | 65 | | |
43 | 66 | | |
44 | 67 | | |
| |||
0 commit comments