Skip to content

Commit

Permalink
Continue running the CI Workflow even if the Azure/container scan ret…
Browse files Browse the repository at this point in the history
…urns errors
  • Loading branch information
rm3l committed Nov 3, 2021
1 parent dbc5a85 commit aa40e45
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,21 @@ jobs:

- name: Scan sample image with Azure Container Scan
id: container-image-scan
continue-on-error: true
uses: Azure/[email protected]
with:
image-name: debian:11

- name: container-scan-to-sarif action step
id: container-scan-to-sarif-step
- name: Convert Container Scan Output to SARIF
id: container-scan-to-sarif
if: ${{ always() }}
uses: ./
with:
converter-version: 0.2.2
input-file: ${{ steps.container-image-scan.outputs.scan-report-path }}

- run: cat "${{ steps.container-scan-to-sarif-step.outputs.sarif-report-path }}"

- name: Upload SARIF reports to GitHub Security tab
uses: github/codeql-action/upload-sarif@v1
if: ${{ always() }}
with:
sarif_file: ${{ steps.container-scan-to-sarif-step.outputs.sarif-report-path }}
sarif_file: ${{ steps.container-scan-to-sarif.outputs.sarif-report-path }}

0 comments on commit aa40e45

Please sign in to comment.