Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: add upload and output of sarif report #324

Merged
merged 7 commits into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 20 additions & 5 deletions .github/workflows/cve-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,27 @@ jobs:
- name: Build images
shell: bash
run: |
touch ory
DOCKER_BUILDKIT=1 docker build -f .docker/Dockerfile-alpine -t oryd/ory:test-vulns .
rm ory
make docker
- name: Scan image
id: scan
uses: anchore/scan-action@v3
with:
image: oryd/ory:test-vulns
image: oryd/ory:latest-sqlite
fail-build: false
severity-cutoff: critical
add-cpes-if-none: true
- name: Inspect action SARIF report
run: cat ${{ steps.scan.outputs.sarif }}
- name: Upload SARIF report
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ${{ steps.scan.outputs.sarif }}
- name: Inspect scan result
id: report
uses: anchore/scan-action@v3
with:
image: oryd/ory:latest-sqlite
output-format: table
fail-build: true
severity-cutoff: high
severity-cutoff: critical
add-cpes-if-none: true
Loading