From 140440bed97fe75b017dde84edf1b602f3d53298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Pereira?= Date: Wed, 15 Jan 2025 12:59:09 -0600 Subject: [PATCH] Newer version of the scan action changed the output location for results (#3365) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: João Pereira --- .github/workflows/check-cves.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-cves.yml b/.github/workflows/check-cves.yml index b6cc21e677..6079283c3c 100644 --- a/.github/workflows/check-cves.yml +++ b/.github/workflows/check-cves.yml @@ -13,6 +13,7 @@ jobs: uses: actions/checkout@v4 - name: Scan current project + id: scan uses: anchore/scan-action@v6 with: path: "." @@ -21,7 +22,7 @@ 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 @@ -29,4 +30,4 @@ jobs: if: always() with: name: cve-scan-results-${{ github.sha }}-${{ github.run_id }}-${{ github.run_number }} - path: results.json \ No newline at end of file + path: ${{ steps.scan.outputs.json }}