File tree Expand file tree Collapse file tree 2 files changed +16
-7
lines changed
Expand file tree Collapse file tree 2 files changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ jobs:
2626 java-version : ${{ env.JAVA_VERSION }}
2727 cache : ' maven'
2828
29- - name : Restore CVE Database
29+ - name : " Restore CVE Database"
3030 uses : actions/cache/restore@v4
3131 with :
3232 path : ${{ env.CVE_CACHE_DIR }}
3333 key : ${{ env.CVE_CACHE_KEY }}
34- # fail-on-cache-miss: true
34+ fail-on-cache-miss : true
3535
3636 - name : " Build SDK"
3737 run : |
4848 env :
4949 NVD_API_KEY : ${{ secrets.NVD_API_KEY }}
5050 run : |
51- mvn -T1 --no-transfer-progress dependency-check:check
51+ mvn -T1 --no-transfer-progress --batch-mode org.owasp: dependency-check-maven :check org.owasp:dependency-check-maven:aggregate
5252
53- - name : Delete Old CVE Cache
53+ - name : " Archive CVE Report"
54+ uses : actions/upload-artifact@v4
55+ with :
56+ name : cve-report
57+ path : target/dependency-check-report.html
58+ retention-days : 7
59+
60+ - name : " Delete Old CVE Cache"
5461 run : |
5562 CACHE_IDS=$(gh cache list --key "${{ env.CVE_CACHE_KEY }}" --ref "${{ env.CVE_CACHE_REF }}" --json id | jq -r '.[] | .id')
5663 for CACHE_ID in $CACHE_IDS; do
6067 env :
6168 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6269
63- - name : Create Updated CVE Cache
70+ - name : " Create Updated CVE Cache"
6471 uses : actions/cache/save@v4
6572 with :
6673 path : ${{ env.CVE_CACHE_DIR }}
Original file line number Diff line number Diff line change @@ -593,9 +593,11 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
593593 <version >11.1.0</version >
594594 <configuration >
595595 <connectionTimeout >60000</connectionTimeout >
596- <nvdMaxRetryCount >10 </nvdMaxRetryCount >
596+ <nvdMaxRetryCount >20 </nvdMaxRetryCount >
597597 <failBuildOnCVSS >7</failBuildOnCVSS >
598- <nvdApiKeyEnvironmentVariable >NVD_API_KEY</nvdApiKeyEnvironmentVariable >
598+ <!-- Using the https://mirror.cveb.in mirror because NVD is too slow.
599+ For more information see this discussion: https://github.com/jeremylong/DependencyCheck/issues/7180#issuecomment-2500914164 -->
600+ <nvdDatafeedUrl >https://mirror.cveb.in/nvd/json/cve/1.1/nvdcve-1.1-{0}.json.gz</nvdDatafeedUrl >
599601 <suppressionFile >${project.rootdir} /.pipeline/dependency-check-suppression.xml</suppressionFile >
600602 <nvdValidForHours >46</nvdValidForHours >
601603 <skipProvidedScope >true</skipProvidedScope >
You can’t perform that action at this time.
0 commit comments