From bdc14bdbf8afc6e05981e1b64a04ff600bc87ac1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jorge=20Mart=C3=ADn?= Date: Thu, 11 Jul 2024 12:56:28 +0200 Subject: [PATCH] Try using NVD API key --- .github/workflows/nightlyReports.yml | 2 +- compound/build.gradle.kts | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightlyReports.yml b/.github/workflows/nightlyReports.yml index 606498a..5a64600 100644 --- a/.github/workflows/nightlyReports.yml +++ b/.github/workflows/nightlyReports.yml @@ -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 diff --git a/compound/build.gradle.kts b/compound/build.gradle.kts index 1359b73..19d65ca 100644 --- a/compound/build.gradle.kts +++ b/compound/build.gradle.kts @@ -23,6 +23,7 @@ plugins { alias(libs.plugins.ksp) alias(libs.plugins.kover) alias(libs.plugins.roborazzi) + alias(libs.plugins.dependencycheck) } android { @@ -95,6 +96,11 @@ kotlin { jvmToolchain(17) } +configure { + (properties["NVD_API_KEY"] as? String)?.let { nvd.apiKey = it } + nvd.delay = 1600 +} + mavenPublishing { publishToMavenCentral(SonatypeHost.S01) signAllPublications()