Skip to content

Commit

Permalink
Set IgnoredVulns in osv-scanner config
Browse files Browse the repository at this point in the history
Use specific IgnoredVulns for each id

Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
  • Loading branch information
bact committed Jan 30, 2025
1 parent b0cb4c1 commit 6444c65
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 8 deletions.
38 changes: 38 additions & 0 deletions osv-scanner.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[[IgnoredVulns]]
id = "CVE-2022-48174"
reason = "Alpine/BusyBox-related, which is not used by this package. The matching vulnerability data may come from an SBOM test file in /tests directory."

[[IgnoredVulns]]
id = "CVE-2023-42363"
reason = "Alpine/BusyBox-related, which is not used by this package. The matching vulnerability data may come from an SBOM test file in /tests directory."

[[IgnoredVulns]]
id = "CVE-2023-42364"
reason = "Alpine/BusyBox-related, which is not used by this package. The matching vulnerability data may come from an SBOM test file in /tests directory."

[[IgnoredVulns]]
id = "CVE-2023-42365"
reason = "Alpine/BusyBox-related, which is not used by this package. The matching vulnerability data may come from an SBOM test file in /tests directory."

[[IgnoredVulns]]
id = "CVE-2023-42366"
reason = "Alpine/BusyBox-related, which is not used by this package. The matching vulnerability data may come from an SBOM test file in /tests directory."

[[IgnoredVulns]]
id = "GHSA-269g-pwp5-87pp"
reason = "Maven/JUnit-related, which is not used by this package. The matching vulnerability data may come from an SBOM test file in /tests directory."

# We can also ignore the entire category of vulnerabilities,
# using PackageOverrides

# # ignore packages named "busybox" in the Alpine ecosystem
# [[PackageOverrides]]
# name = "busybox"
# ecosystem = "Alpine"
# ignore = true

# # ignore packages named "junit:junit" in the Maven ecosystem
# [[PackageOverrides]]
# name = "junit:junit"
# ecosystem = "Maven"
# ignore = true
4 changes: 0 additions & 4 deletions tests/data/osv-scanner.toml

This file was deleted.

4 changes: 0 additions & 4 deletions tests/doc_fest/osv-scanner.toml

This file was deleted.

0 comments on commit 6444c65

Please sign in to comment.