Skip to content

Commit

Permalink
chore: add owasp nvd api key (in gh secrets)
Browse files Browse the repository at this point in the history
  • Loading branch information
timonback committed Dec 8, 2023
1 parent 5a158c6 commit 7be7dfa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/owasp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ jobs:

- name: Generate DependencyCheck report
run: ./gradlew dependencyCheckAggregate
env:
ORG_GRADLE_PROJECT_OWASP_API_KEY: ${{ secrets.ORG_GRADLE_PROJECT_OWASP_API_KEY }}
- name: upload-sarif-4
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ./build/reports/owasp-dependency-check/dependency-check-report.sarif

1 change: 1 addition & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ allprojects {
dependencyCheck {
outputDirectory = "$buildDir/reports/owasp-dependency-check"
formats = [ReportGenerator.Format.SARIF.toString()]
nvd.apiKey = project.findProperty("OWASP_API_KEY")
}

def static readEnvFile(path = ".env") {
Expand Down

0 comments on commit 7be7dfa

Please sign in to comment.