Skip to content

Commit

Permalink
Use NVD_API_KEY
Browse files Browse the repository at this point in the history
  • Loading branch information
dotasek committed Dec 10, 2024
1 parent cb8035a commit 89a80f6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/owasp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,16 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- run: |
- env:
NVD_API_KEY:
${{ secrets.NVD_API_KEY }}
run: |
mvn -DskipTests install -P OWASP_CHECK
- run: |
- env:
NVD_API_KEY:
${{ secrets.NVD_API_KEY }}
run: |
mvn -DskipTests dependency-check:aggregate -P OWASP_CHECK
- name: Upload SARIF file
Expand Down
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,7 @@
<artifactId>dependency-check-maven</artifactId>
<version>11.1.1</version>
<configuration>
<nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
<suppressionFiles>
<suppressionFile>cve-suppression.xml</suppressionFile>
</suppressionFiles>
Expand Down

0 comments on commit 89a80f6

Please sign in to comment.