Skip to content

Commit f01f76e

Browse files
authored
Try fix CVE scan (#225)
* Try fix CVE scan * Revert temporary changes
1 parent e7e1a7b commit f01f76e

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/fosstars-report.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,6 @@ jobs:
3838
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
3939
mvn $MVN_ARGS
4040
41-
- name: "Fosstars Rating"
42-
43-
with:
44-
report-branch: fosstars-report
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
4741
- name: "CVE Scan"
4842
env:
4943
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
@@ -73,6 +67,13 @@ jobs:
7367
path: ${{ env.CVE_CACHE_DIR }}
7468
key: ${{ env.CVE_CACHE_KEY }}
7569

70+
# This action changes the active branch!
71+
- name: "Fosstars Rating"
72+
73+
with:
74+
report-branch: fosstars-report
75+
token: ${{ secrets.GITHUB_TOKEN }}
76+
7677
- name: "Slack Notification"
7778
if: failure()
7879
uses: slackapi/[email protected]

pom.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -594,9 +594,7 @@ https://gitbox.apache.org/repos/asf?p=maven-pmd-plugin.git;a=blob_plain;f=src/ma
594594
<connectionTimeout>60000</connectionTimeout>
595595
<nvdMaxRetryCount>20</nvdMaxRetryCount>
596596
<failBuildOnCVSS>7</failBuildOnCVSS>
597-
<!-- Using the https://mirror.cveb.in mirror because NVD is too slow.
598-
For more information see this discussion: https://github.com/jeremylong/DependencyCheck/issues/7180#issuecomment-2500914164 -->
599-
<nvdDatafeedUrl>https://mirror.cveb.in/nvd/json/cve/1.1/nvdcve-1.1-{0}.json.gz</nvdDatafeedUrl>
597+
<nvdApiKeyEnvironmentVariable>NVD_API_KEY</nvdApiKeyEnvironmentVariable>
600598
<suppressionFile>${project.rootdir}/.pipeline/dependency-check-suppression.xml</suppressionFile>
601599
<nvdValidForHours>46</nvdValidForHours>
602600
<skipProvidedScope>true</skipProvidedScope>

0 commit comments

Comments
 (0)