Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/osv-scanner.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ jobs:
continue-on-error: true
with:
scan-args: |-
--config=.osv-scanner.toml
--format=json
--output=osv-results.json
--recursive
Expand Down
41 changes: 41 additions & 0 deletions .osv-scanner.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Summary: config for Open Source Vulnerabilitis Scanner.
# See https://google.github.io/osv-scanner/configuration/ for more info.
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

# OSV prior to version 2.0 is unable to parse pip version specs correctly:
# https://github.com/google/osv-scanner/issues/1483#issuecomment-2585999293
# 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.

[[IgnoredVulns]]
id = "PYSEC-2018-34"
reason = "false positive due to osv-scanner's buggy pip requirements parser"

[[IgnoredVulns]]
id = "PYSEC-2021-855"
reason = "false positive due to osv-scanner's buggy pip requirements parser"

[[IgnoredVulns]]
id = "PYSEC-2021-856"
reason = "false positive due to osv-scanner's buggy pip requirements parser"

[[IgnoredVulns]]
id = "PYSEC-2019-108"
reason = "false positive due to osv-scanner's buggy pip requirements parser"

[[IgnoredVulns]]
id = "PYSEC-2018-33"
reason = "false positive due to osv-scanner's buggy pip requirements parser"

[[IgnoredVulns]]
id = "PYSEC-2021-857"
reason = "false positive due to osv-scanner's buggy pip requirements parser"

[[IgnoredVulns]]
id = "PYSEC-2017-1"
reason = "false positive due to osv-scanner's buggy pip requirements parser"
Loading