Commit 7b8aebd
authored
Ignore false positives from osv-scanner (#1005)
* Ignore false positives from osv-scanner
OSV prior to version 2.0 is unable to parse pip version specs
correctly, as explained by one of the developers in the following
comment from January 2025:
google/osv-scanner#1483 (comment)
The suggested workaround is to configure osv-scanner to ignore the particular
cases it complains about. The following are all about NumPy, because
osv-scanner can't understand the version spec "numpy>=1.24,<2.0" and
therefore raises errors about all versions of NumPy, including very old ones.
Ignoring these specific dependencies is okay because we will never use the
old versions of NumPy and it doesn't block detection of future new
vulnerabilities.
* Add configuration file argument to osv-scanner call1 parent d2e1c1b commit 7b8aebd
2 files changed
+42
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| 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 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
0 commit comments