Skip to content

Commit 094ead7

Browse files
authored
chores: Add Trivy Scanner GH Workflow (#187)
* chores: Add Trivy Scanner GH Workflow Closes: BED-6789 * update sha commit trivy gh action * fix the sha * update branch strategy * update branch strategy base main branch
1 parent dc420a6 commit 094ead7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/vuln-scan.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Vulnerability Scan
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- "*.*"
7+
types:
8+
- opened
9+
- synchronize
10+
11+
jobs:
12+
run-analysis:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout source code for this repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run vulnerability scanner
20+
uses: aquasecurity/trivy-action@b6643a29fecd7f34b3597bc6acb0a98b03d33ff8 # 0.33.1
21+
with:
22+
scan-type: "repo"
23+
scan-ref: "./"
24+
severity: "CRITICAL,HIGH"
25+
exit-code: "1"
26+
ignore-unfixed: true
27+
env:
28+
TRIVY_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-db,public.ecr.aws/aquasecurity/trivy-db
29+
TRIVY_JAVA_DB_REPOSITORY: ghcr.io/aquasecurity/trivy-java-db,public.ecr.aws/aquasecurity/trivy-java-db

0 commit comments

Comments
 (0)