-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add
osv-scanner.toml
files to make Scorecard ignore vulnerab…
…ilities in our test fixtures (#1202) Scorecard is currently giving us a 0 for our Vulnerabilities score, because the lockfiles in our test fixtures are intentionally vulnerable. I think currently to only way to ignore them in Scorecard is by [using our own `osv-scanner.toml` file](https://github.com/ossf/scorecard/blob/ea7e27ed41b76ab879c862fa0ca4cc9c61764ee4/docs/checks.md#vulnerabilities) for each lockfile. We have some of these already from #329, but they seem to be a bit out of date, and I didn't make any new ones when I added the tests for guided remediation. There are a lot of vulnerabilities in these files and we'd want to make sure newly discovered vulns are also ignored. #1155 would definitely make this nicer.
- Loading branch information
1 parent
dcf71dd
commit 0d6255f
Showing
19 changed files
with
539 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
cmd/osv-scanner/fix/fixtures/in-place-npm/osv-scanner.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
[[PackageOverrides]] | ||
name = "chownr" | ||
ecosystem = "npm" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "concat-stream" | ||
ecosystem = "npm" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "hosted-git-info" | ||
ecosystem = "npm" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "request" | ||
ecosystem = "npm" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "semver" | ||
ecosystem = "npm" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "tough-cookie" | ||
ecosystem = "npm" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
23 changes: 23 additions & 0 deletions
23
cmd/osv-scanner/fix/fixtures/override-maven/osv-scanner.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
[[PackageOverrides]] | ||
name = "commons-io:commons-io" | ||
ecosystem = "Maven" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "org.apache.httpcomponents:httpclient" | ||
ecosystem = "Maven" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "org.codehaus.plexus:plexus-utils" | ||
ecosystem = "Maven" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[PackageOverrides]] | ||
name = "org.jsoup:jsoup" | ||
ecosystem = "Maven" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
41 changes: 20 additions & 21 deletions
41
cmd/osv-scanner/fixtures/call-analysis-go-project/osv-scanner.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,23 @@ | ||
[[IgnoredVulns]] | ||
id = "GO-2021-0053" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test project" | ||
[[PackageOverrides]] | ||
name = "stdlib" | ||
ecosystem = "Go" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[IgnoredVulns]] | ||
id = "GO-2023-1558" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test project" | ||
[[PackageOverrides]] | ||
name = "golang.org/x/image" | ||
ecosystem = "Go" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[IgnoredVulns]] | ||
id = "GO-2023-1572" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test project" | ||
[[PackageOverrides]] | ||
name = "github.com/ipfs/go-bitfield" | ||
ecosystem = "Go" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" | ||
|
||
[[IgnoredVulns]] | ||
id = "GO-2023-1989" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test project" | ||
|
||
[[IgnoredVulns]] | ||
id = "GO-2023-1990" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test project" | ||
[[PackageOverrides]] | ||
name = "github.com/gogo/protobuf" | ||
ecosystem = "Go" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
GoVersionOverride = "1.21.7" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
GoVersionOverride = "1.21.7" | ||
[[PackageOverrides]] | ||
name = "stdlib" | ||
ecosystem = "Go" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[PackageOverrides]] | ||
name = "league/flysystem" | ||
ecosystem = "Packagist" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[PackageOverrides]] | ||
name = "org.apache.logging.log4j:log4j-core" | ||
ecosystem = "Maven" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,64 @@ | ||
[[IgnoredVulns]] | ||
id = "GO-2022-0274" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "GO-2022-0493" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "GHSA-vpvm-3wq2-2wvm" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "GHSA-m8cg-xc2p-r3fc" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "GHSA-g2j6-57v7-gm8c" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "GHSA-f3fp-gc8g-vw66" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "DLA-3008-1" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "DLA-3012-1" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "DLA-3022-1" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "DLA-3051-1" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "CVE-2022-37434" | ||
# ignoreUntil = n/a | ||
reason = "This is a intentionally vulnerable test sbom" | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "CVE-2018-25032" | ||
# ignoreUntil = n/a | ||
reason = "This is an intentionally vulnerable test sbom" | ||
|
||
[[IgnoredVulns]] | ||
id = "GHSA-xr7r-f8xq-vfvv" | ||
# ignoreUntil = n/a | ||
reason = "This is an intentionally vulnerable test sbom" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
internal/image/fixtures/package-tracing-fixture/osv-scanner.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[PackageOverrides]] | ||
name = "stdlib" | ||
ecosystem = "Go" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
5 changes: 5 additions & 0 deletions
5
internal/remediation/fixtures/maven-classifier/osv-scanner.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[[PackageOverrides]] | ||
name = "org.yaml:snakeyaml" | ||
ecosystem = "Maven" | ||
ignore = true | ||
reason = "This is an intentionally vulnerable test project" |
Oops, something went wrong.