File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed
Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Vulnerability Scan
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ - " stage/**"
8+ types :
9+ - opened
10+ - synchronize
11+
12+ jobs :
13+ run-analysis :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout source code for this repository
18+ uses : actions/checkout@v4
19+
20+ - name : Run vulnerability scanner
21+ uses : aquasecurity/setup-trivy@e6c2c5e321ed9123bda567646e2f96565e34abe1 # 0.33.1
22+ with :
23+ scan-type : " repo"
24+ scan-ref : " ./"
25+ severity : " CRITICAL,HIGH"
26+ exit-code : " 1"
27+ ignore-unfixed : true
28+ env :
29+ TRIVY_DB_REPOSITORY : ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
30+ TRIVY_JAVA_DB_REPOSITORY : ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db
You can’t perform that action at this time.
0 commit comments