Skip to content

Commit

Permalink
NVD API KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
ndc-dxc committed Nov 28, 2024
1 parent 091f05f commit 38c661d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/gradlebuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
- name: checkout code
uses: actions/checkout@v2
- name: Dependency Check
run: ./gradlew dependencyCheckAnalyze
run: ./gradlew dependencyCheckAnalyze -DnvdApiKey="${{ secrets.NVD_API_KEY }}"

publish:
runs-on: ubuntu-latest
Expand Down
6 changes: 5 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id 'java'
id 'checkstyle'
id 'jacoco'
id 'org.owasp.dependencycheck' version '8.2.1'
id 'org.owasp.dependencycheck' version '11.1.0'
id 'com.github.spotbugs' version '6.0.19'
id 'org.openapi.generator' version '7.7.0'
id 'idea'
Expand Down Expand Up @@ -242,6 +242,10 @@ spotbugsTest {
}

dependencyCheck {
nvd {
apiKey = System.getProperty("nvdApiKey")
delay = 16000
}
//set up a quality gate for vulnerabilities with high severity level:
//let's consider that a vulnerability has a high severity level if its CVSS score is higher than 7
//the build is going to fail if vulnerabilities with high severity level found
Expand Down

0 comments on commit 38c661d

Please sign in to comment.