Skip to content

Commit

Permalink
Try using NVD API key
Browse files Browse the repository at this point in the history
  • Loading branch information
jmartinesp committed Jul 11, 2024
1 parent d281c8e commit bdc14bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/nightlyReports.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
with:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}
- name: Dependency analysis
run: ./gradlew dependencyCheckAnalyze $CI_GRADLE_ARG_PROPERTIES
run: ./gradlew :compound:dependencyCheckAnalyze $CI_GRADLE_ARG_PROPERTIES -PNVD_API_KEY="${{ secrets.NVD_API_KEY }}"
- name: Upload dependency analysis
if: always()
uses: actions/upload-artifact@v4
Expand Down
6 changes: 6 additions & 0 deletions compound/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ plugins {
alias(libs.plugins.ksp)
alias(libs.plugins.kover)
alias(libs.plugins.roborazzi)
alias(libs.plugins.dependencycheck)
}

android {
Expand Down Expand Up @@ -95,6 +96,11 @@ kotlin {
jvmToolchain(17)
}

configure<org.owasp.dependencycheck.gradle.extension.DependencyCheckExtension> {
(properties["NVD_API_KEY"] as? String)?.let { nvd.apiKey = it }
nvd.delay = 1600
}

mavenPublishing {
publishToMavenCentral(SonatypeHost.S01)
signAllPublications()
Expand Down

0 comments on commit bdc14bd

Please sign in to comment.