Skip to content

Commit

Permalink
chore: add upload and output of sarif report
Browse files Browse the repository at this point in the history
  • Loading branch information
tricky42 committed Nov 15, 2023
1 parent 33a62bb commit 4837644
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/cve-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,15 @@ jobs:
DOCKER_BUILDKIT=1 docker build -f .docker/Dockerfile-alpine -t oryd/ory:test-vulns .
rm ory
- name: Scan image
id: scan
uses: anchore/scan-action@v3
with:
image: oryd/ory:test-vulns
fail-build: true
severity-cutoff: high
- name: Inspect action SARIF report
run: cat ${{ steps.scan.outputs.sarif }}
- name: Upload Anchore scan SARIF report
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.scan.outputs.sarif }}

0 comments on commit 4837644

Please sign in to comment.