Skip to content

Commit 3f3bec2

Browse files
committed
Try to make anchore failure fail build but upload results
The actions page shows all runs as successful despite anchore opening three security errors. I am trying to get the build for anchore to fail but still upload its SARIF report and to cat the SARIF report.
1 parent a394176 commit 3f3bec2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/anchore.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,12 @@ jobs:
4444
id: scan
4545
with:
4646
image: "localbuild/testimage:latest"
47-
fail-build: false
47+
fail-build: true
4848
- name: Upload Anchore Scan Report
49+
if: always()
4950
uses: github/codeql-action/upload-sarif@v2
5051
with:
5152
sarif_file: ${{ steps.scan.outputs.sarif }}
5253
- name: Inspect action SARIF report
54+
if: always()
5355
run: cat ${{ steps.scan.outputs.sarif }}

0 commit comments

Comments
 (0)