Skip to content

Commit

Permalink
feat: SARIF file success or failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur Mudrykh committed Jul 26, 2023
1 parent e16cd47 commit 65b22b1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,20 @@ jobs:
with:
directory: container-image-scannig
framework: dockerfile
output_format: cli,sarif
output_file_path: console,results.sarif

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2

# Results are generated only on a success or failure
# this is required since GitHub by default won't run the next step
# when the previous one has failed. Security checks that do not pass will 'fail'.
# An alternative is to add `continue-on-error: true` to the previous step
# Or 'soft_fail: true' to checkov.
if: success() || failure()
with:
sarif_file: results.sarif

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down

0 comments on commit 65b22b1

Please sign in to comment.