Skip to content

Commit 1150aa7

Browse files
authored
feat(ci): Add Trivy Vulnerability Scan (#2570)
Signed-off-by: Andrey Velichkevich <[email protected]>
1 parent 82260cb commit 1150aa7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/trivy-scan.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
with:
27+
sarif_file: "trivy-results.sarif"

0 commit comments

Comments
 (0)