We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d78bab commit 72cd35fCopy full SHA for 72cd35f
.github/workflows/security.yaml
@@ -8,14 +8,24 @@ jobs:
8
build:
9
name: Build
10
runs-on: ubuntu-20.04
11
+ permissions:
12
+ contents: read
13
+ security-events: write
14
steps:
15
- name: Checkout code
16
uses: actions/checkout@v4
17
- - name: Run Trivy vulnerability scanner in repo mode
18
+ - name: Trivy scan
19
uses: aquasecurity/[email protected]
20
with:
- scan-type: "fs"
- ignore-unfixed: true
- format: "table"
21
- severity: "CRITICAL,HIGH,MEDIUM"
+ scan-type: 'fs'
22
+ format: 'sarif'
23
+ output: 'trivy-results.sarif'
24
+ severity: 'MEDIUM,HIGH,CRITICAL'
25
+ exit-code: '0'
26
+ ignore-unfixed: false
27
+
28
+ - name: Update Security tab
29
+ uses: github/codeql-action/upload-sarif@v3
30
+ with:
31
+ sarif_file: 'trivy-results.sarif'
0 commit comments