Skip to content

Commit

Permalink
configure NVD API key for dependency check
Browse files Browse the repository at this point in the history
  • Loading branch information
paulchen committed May 29, 2024
1 parent cce7b8d commit 74173c8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/build_after_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
uses: gradle/wrapper-validation-action@v1
- name: Build with Gradle
uses: gradle/gradle-build-action@v2
env:
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
with:
arguments: |
build
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ Refer to `main.kt` in `kotlin-rocket-bot` for an example on how to do this.

__Important__: This bot handles incoming Rocket.Chat messages asynchronously.
Therefore, you need to ensure thread-safety in your handlers.

## About the build

This product uses the NVD API but is not endorsed or certified by the NVD.
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ configure<DependencyCheckExtension> {
analyzers.assemblyEnabled = false
failBuildOnCVSS = 7f
suppressionFile = file("$rootDir/cve-suppressions.xml").toString()
nvd.apiKey = System.getenv("NVD_API_KEY")
}

repositories {
Expand Down

0 comments on commit 74173c8

Please sign in to comment.