Skip to content

Commit fa6ea8a

Browse files
committed
chores: Add Trivy Scanner GH Workflow
Closes: BED-6789
1 parent dc420a6 commit fa6ea8a

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/vuln-scan.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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

0 commit comments

Comments
 (0)