Skip to content

Commit

Permalink
Allow for the use of a NIST NVD API key
Browse files Browse the repository at this point in the history
Look for a NIST NVD API key in the environment variable NVD_API_KEY and, if
found, use it when running the OWASP dependency check tasks.
  • Loading branch information
lesserwhirls committed Jul 16, 2024
1 parent dfd72ae commit 5b32f55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,5 @@ dependencyCheck {
// fail the build if any vulnerable dependencies are identified (CVSS score > 0)
failBuildOnCVSS = 0f;
suppressionFile = "project_files/owasp/dependency-check-suppression.xml"
nvd.apiKey = System.getenv("NVD_API_KEY")
}
2 changes: 1 addition & 1 deletion libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ slf4jSimple = { group = "org.slf4j", name = "slf4j-simple", version.ref = "slf4j
# plugins used in buildSrc/
#
kotlinJvmPlugin = { group = "org.jetbrains.kotlin", name = "kotlin-gradle-plugin", version.ref = "kotlinVersion" }
owaspDepCheckPlugin = { group = "org.owasp", name = "dependency-check-gradle", version = "8.4.0" }
owaspDepCheckPlugin = { group = "org.owasp", name = "dependency-check-gradle", version = "10.0.3" }
versionsPlugin = { group = "com.github.ben-manes", name = "gradle-versions-plugin", version = "0.47.0" }

[plugins]
Expand Down

0 comments on commit 5b32f55

Please sign in to comment.