From 1de5bb3c0da9df46bd30a7329afa745bd9ae3ec6 Mon Sep 17 00:00:00 2001 From: ZhangJian He Date: Sat, 27 Jul 2024 16:08:20 +0800 Subject: [PATCH] [fix][ci] Fix OWASP Dependency Check download by using NVD API key Signed-off-by: ZhangJian He --- .github/workflows/bk-ci.yml | 1 + .github/workflows/owasp-daily-build.yml | 3 +++ pom.xml | 6 +++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bk-ci.yml b/.github/workflows/bk-ci.yml index df2a22d6f90..0106da05b33 100644 --- a/.github/workflows/bk-ci.yml +++ b/.github/workflows/bk-ci.yml @@ -32,6 +32,7 @@ on: env: MAVEN_OPTS: -Xss1500k -Xmx1500m -Daether.connector.http.reuseConnections=false -Daether.connector.requestTimeout=60000 -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3 -Dmaven.wagon.http.retryHandler.requestSentEnabled=true -Dmaven.wagon.http.serviceUnavailableRetryStrategy.class=standard -Dmaven.wagon.rto=60000 + NIST_NVD_API_KEY: ${{ secrets.NIST_NVD_API_KEY }} concurrency: group: ${{ github.workflow }}-${{ github.ref }} diff --git a/.github/workflows/owasp-daily-build.yml b/.github/workflows/owasp-daily-build.yml index 2da08c4c945..5dc9eaf3b51 100644 --- a/.github/workflows/owasp-daily-build.yml +++ b/.github/workflows/owasp-daily-build.yml @@ -21,6 +21,9 @@ on: - cron: '0 0 * * *' # Runs at 00:00 UTC every day workflow_dispatch: +env: + NIST_NVD_API_KEY: ${{ secrets.NIST_NVD_API_KEY }} + jobs: owasp-daily-build: name: OWASP Dependency Check diff --git a/pom.xml b/pom.xml index 4dadfc3ad0c..19bfcacf8b1 100644 --- a/pom.xml +++ b/pom.xml @@ -192,7 +192,7 @@ 3.3.1 3.12.1 3.2.5 - 9.2.0 + 10.0.2 3.10.1 1.4.1.Final 0.6.1 @@ -1169,6 +1169,10 @@ ${dependency-check-maven.version} false + + NIST_NVD_API_KEY + + src/owasp-dependency-check-suppressions.xml