Skip to content

Commit

Permalink
[fix][ci] Fix OWASP Dependency Check download by using NVD API key (#…
Browse files Browse the repository at this point in the history
…4473)

Signed-off-by: ZhangJian He <[email protected]>
  • Loading branch information
shoothzj authored Jul 29, 2024
1 parent 5662524 commit 7ab29e6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/bk-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/owasp-daily-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 5 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
<maven-checkstyle-plugin.version>3.3.1</maven-checkstyle-plugin.version>
<maven-compiler-plugin.version>3.12.1</maven-compiler-plugin.version>
<maven-surefire-plugin.version>3.2.5</maven-surefire-plugin.version>
<dependency-check-maven.version>9.2.0</dependency-check-maven.version>
<dependency-check-maven.version>10.0.2</dependency-check-maven.version>
<nar-maven-plugin.version>3.10.1</nar-maven-plugin.version>
<os-maven-plugin.version>1.4.1.Final</os-maven-plugin.version>
<protobuf-maven-plugin.version>0.6.1</protobuf-maven-plugin.version>
Expand Down Expand Up @@ -1169,6 +1169,10 @@
<version>${dependency-check-maven.version}</version>
<inherited>false</inherited>
<configuration>
<!-- https://issues.apache.org/jira/projects/INFRA/issues/INFRA-26000 -->
<nvdApiKeyEnvironmentVariable>NIST_NVD_API_KEY</nvdApiKeyEnvironmentVariable>
<!-- Uncomment the following to use the NVD data feed provided by the Dependency-Check project -->
<!-- <nvdDatafeedUrl>https://jeremylong.github.io/DependencyCheck/hb_nvd/</nvdDatafeedUrl> -->
<suppressionFiles>
<suppressionFile>src/owasp-dependency-check-suppressions.xml</suppressionFile>
</suppressionFiles>
Expand Down

0 comments on commit 7ab29e6

Please sign in to comment.