Upload trivy scan results to GitHub security tab
Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
8
.github/workflows/make.yaml
vendored
8
.github/workflows/make.yaml
vendored
@@ -15,6 +15,7 @@ jobs:
|
|||||||
contents: "read"
|
contents: "read"
|
||||||
packages: "write"
|
packages: "write"
|
||||||
id-token: "write"
|
id-token: "write"
|
||||||
|
security-events: "write"
|
||||||
steps:
|
steps:
|
||||||
- uses: "actions/checkout@v4"
|
- uses: "actions/checkout@v4"
|
||||||
with:
|
with:
|
||||||
@@ -40,11 +41,16 @@ jobs:
|
|||||||
- uses: "aquasecurity/trivy-action@0.28.0"
|
- uses: "aquasecurity/trivy-action@0.28.0"
|
||||||
with:
|
with:
|
||||||
image-ref: "ghcr.io/getprobo/probo:latest-amd64"
|
image-ref: "ghcr.io/getprobo/probo:latest-amd64"
|
||||||
format: "table"
|
format: "sarif"
|
||||||
|
output: "trivy-results.sarif"
|
||||||
exit-code: 1
|
exit-code: 1
|
||||||
ignore-unfixed: true
|
ignore-unfixed: true
|
||||||
vuln-type: "os,library"
|
vuln-type: "os,library"
|
||||||
severity: "CRITICAL,HIGH"
|
severity: "CRITICAL,HIGH"
|
||||||
|
- name: Upload Trivy scan results to GitHub Security tab
|
||||||
|
uses: github/codeql-action/upload-sarif@v3
|
||||||
|
with:
|
||||||
|
sarif_file: 'trivy-results.sarif'
|
||||||
|
|
||||||
test:
|
test:
|
||||||
name: "test"
|
name: "test"
|
||||||
|
|||||||
Reference in New Issue
Block a user