Skip to content

Commit 4fee56a

Browse files
authored
Update vulnerability-scan.yml
1 parent 79a4cfe commit 4fee56a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/vulnerability-scan.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@ jobs:
4949
exit 1
5050
fi
5151
52-
echo "Scan started with ID $SCAN_ID"
52+
SCAN_DB_ID=$(jq -r '.scanDbId' response.json)
53+
echo "SCAN_DB_ID=$SCAN_DB_ID" >> $GITHUB_ENV
54+
55+
echo "Scan started with ID $SCAN_ID (db id: $SCAN_DB_ID)"
5356
cat response.json
5457
5558
- name: Scan each SBOM
@@ -128,7 +131,7 @@ jobs:
128131
129132
echo "--- Indexing EPPlus $version / $tfm ---"
130133
response=$(curl -s -o response.json -w "%{http_code}" \
131-
-X POST "https://epplussoftware.com/api/security/vulnerability/index/${version}?tfm=${tfm}&scanId=${SCAN_ID}" \
134+
-X POST "https://epplussoftware.com/api/security/vulnerability/index/${version}?tfm=${tfm}&scanId=${SCAN_DB_ID}" \
132135
-H "X-Api-Key: ${{ secrets.EPPLUS_VULNERABILITY_API_KEY }}" \
133136
-H "Content-Type: application/json" \
134137
-d @"./reports/${version}/${tfm}/report.json")

0 commit comments

Comments
 (0)