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 82260cb commit 1150aa7Copy full SHA for 1150aa7
.github/workflows/trivy-scan.yaml
@@ -0,0 +1,27 @@
1
+name: Trivy Vulnerability Scan
2
+on:
3
+ push:
4
+ branches:
5
+ - master
6
+ pull_request:
7
+jobs:
8
+ build:
9
+ name: Build
10
+ runs-on: ubuntu-24.04
11
+ steps:
12
+ - name: Checkout code
13
+ uses: actions/checkout@v4
14
+
15
+ - name: Run Trivy vulnerability scanner in repo mode
16
+ uses: aquasecurity/[email protected]
17
+ with:
18
+ scan-type: "fs"
19
+ ignore-unfixed: true
20
+ format: "sarif"
21
+ output: "trivy-results.sarif"
22
+ severity: "CRITICAL,HIGH"
23
24
+ - name: Upload Trivy scan results to GitHub Security tab
25
+ uses: github/codeql-action/upload-sarif@v3
26
27
+ sarif_file: "trivy-results.sarif"
0 commit comments