Skip to content

Commit a6eabc1

Browse files
Newer version of the scan action changed the output location for results (#3364)
Signed-off-by: João Pereira <[email protected]>
1 parent 420d5be commit a6eabc1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/check-cves.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Scan current project
16+
id: scan
1617
uses: anchore/scan-action@v6
1718
with:
1819
path: "."
@@ -21,12 +22,12 @@ jobs:
2122
output-format: json
2223

2324
- name: Print scan results
24-
run: .github/scripts/format-cve-scan-results.sh results.json > $GITHUB_STEP_SUMMARY
25+
run: .github/scripts/format-cve-scan-results.sh ${{ steps.scan.outputs.json }} > $GITHUB_STEP_SUMMARY
2526
if: always()
2627

2728
- name: Archive CVE scan results
2829
uses: actions/upload-artifact@v4
2930
if: always()
3031
with:
3132
name: cve-scan-results-${{ github.sha }}-${{ github.run_id }}-${{ github.run_number }}
32-
path: results.json
33+
path: ${{ steps.scan.outputs.json }}

0 commit comments

Comments
 (0)