Skip to content

Commit

Permalink
Newer version of the scan action changed the output location for resu…
Browse files Browse the repository at this point in the history
…lts (#3365)

Signed-off-by: João Pereira <joao.pereira@broadcom.com>
  • Loading branch information
joaopapereira authored Jan 15, 2025
1 parent 63d3f09 commit 140440b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/check-cves.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ jobs:
uses: actions/checkout@v4

- name: Scan current project
id: scan
uses: anchore/scan-action@v6
with:
path: "."
Expand All @@ -21,12 +22,12 @@ jobs:
output-format: json

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

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

0 comments on commit 140440b

Please sign in to comment.