Add NVD api key to speed up owasp dependency check (#10003)
Co-authored-by: Lauri Tulmin <ltulmin@splunk.com>
This commit is contained in:
parent
f67f1c3127
commit
42de8966b7
|
@ -69,6 +69,7 @@ for [`dependabot/**/**`](https://github.com/open-telemetry/community/blob/main/d
|
|||
see [docs](https://docs.gradle.com/enterprise/gradle-plugin/#via_environment_variable)
|
||||
- `GRADLE_PUBLISH_KEY`
|
||||
- `GRADLE_PUBLISH_SECRET`
|
||||
- `NVD_API_KEY` - stored in OpenTelemetry-Java 1Password
|
||||
- `OPENTELEMETRYBOT_GITHUB_TOKEN` - owned by [@trask](https://github.com/trask)
|
||||
- `SONATYPE_KEY` - owned by [@trask](https://github.com/trask)
|
||||
- `SONATYPE_USER` - owned by [@trask](https://github.com/trask)
|
||||
|
|
|
@ -27,6 +27,8 @@ jobs:
|
|||
- uses: gradle/gradle-build-action@v2
|
||||
with:
|
||||
arguments: ":javaagent:dependencyCheckAnalyze"
|
||||
env:
|
||||
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
|
||||
|
||||
- name: Upload report
|
||||
if: always()
|
||||
|
|
|
@ -415,6 +415,7 @@ dependencyCheck {
|
|||
skipConfigurations = listOf("errorprone", "checkstyle", "annotationProcessor")
|
||||
suppressionFile = "buildscripts/dependency-check-suppressions.xml"
|
||||
failBuildOnCVSS = 7.0f // fail on high or critical CVE
|
||||
nvd.apiKey = System.getenv("NVD_API_KEY")
|
||||
}
|
||||
|
||||
idea {
|
||||
|
|
Loading…
Reference in New Issue