Skip to content

Commit 81accba

Browse files
committed
Try fix CVE scan
1 parent 42ad4bf commit 81accba

File tree

2 files changed

+23
-18
lines changed

2 files changed

+23
-18
lines changed

.github/workflows/fosstars-report.yml

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: "Fosstars (Security)"
22
on:
33
workflow_dispatch:
4+
inputs:
5+
branch:
6+
description: "Branch to create the report for"
7+
required: true
8+
default: "main"
49
schedule:
510
- cron: '42 03 * * MON-FRI' # 03:42 on weekdays, a somewhat random time to avoid producing load spikes on the GH actions infrastructure
611

@@ -18,6 +23,8 @@ jobs:
1823
steps:
1924
- name: "Checkout repository"
2025
uses: actions/checkout@v4
26+
with:
27+
ref: refs/heads/${{ github.event.inputs.branch }}
2128

2229
- name: "Setup java"
2330
uses: actions/setup-java@v4
@@ -38,12 +45,6 @@ jobs:
3845
MVN_ARGS="${{ env.MVN_MULTI_THREADED_ARGS }} clean install -DskipTests -DskipFormatting"
3946
mvn $MVN_ARGS
4047
41-
- name: "Fosstars Rating"
42-
43-
with:
44-
report-branch: fosstars-report
45-
token: ${{ secrets.GITHUB_TOKEN }}
46-
4748
- name: "CVE Scan"
4849
env:
4950
NVD_API_KEY: ${{ secrets.NVD_API_KEY }}
@@ -73,13 +74,19 @@ jobs:
7374
path: ${{ env.CVE_CACHE_DIR }}
7475
key: ${{ env.CVE_CACHE_KEY }}
7576

76-
- name: "Slack Notification"
77-
if: failure()
78-
uses: slackapi/[email protected]
77+
- name: "Fosstars Rating"
78+
7979
with:
80-
webhook: ${{ secrets.SLACK_WEBHOOK }}
81-
webhook-type: incoming-webhook
82-
payload: |
83-
{
84-
"text": "⚠️ OWASP Dependency check failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
85-
}
80+
report-branch: fosstars-report
81+
token: ${{ secrets.GITHUB_TOKEN }}
82+
83+
# - name: "Slack Notification"
84+
# if: failure()
85+
# uses: slackapi/[email protected]
86+
# with:
87+
# webhook: ${{ secrets.SLACK_WEBHOOK }}
88+
# webhook-type: incoming-webhook
89+
# payload: |
90+
# {
91+
# "text": "⚠️ OWASP Dependency check failed! 😬 Please inspect & fix by clicking <https://github.com/SAP/ai-sdk-java/actions/runs/${{ github.run_id }}|here>"
92+
# }

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)