Skip to content

Commit 64e2116

Browse files
committed
Fix version identofier for Anchore scan
use anything on v3. Also dump serif output file. Also add id and use ${{ steps.scan.outputs.sarif }} rather than hardcoded file name to match example.
1 parent ca62505 commit 64e2116

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/anchore.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@ jobs:
4040
- name: Build the Docker image
4141
run: docker build . --file scripts/Docker/Dockerfile --tag localbuild/testimage:latest
4242
- name: Run the Anchore scan action itself with GitHub Advanced Security code scanning integration enabled
43-
uses: anchore/[email protected]
43+
uses: anchore/scan-action@v3
44+
id: scan
4445
with:
4546
image: "localbuild/testimage:latest"
4647
acs-report-enable: true
4748
fail-build: false
4849
- name: Upload Anchore Scan Report
4950
uses: github/codeql-action/upload-sarif@v2
5051
with:
51-
sarif_file: results.sarif
52+
sarif_file: ${{ steps.scan.outputs.sarif }}
53+
- name: Inspect action SARIF report
54+
run: cat ${{ steps.scan.outputs.sarif }}

0 commit comments

Comments
 (0)