Skip to content

Commit bd2ac11

Browse files
authored
Merge pull request #76 from esc-chula/ci/trivy-github-action
ci: add trivy scan action
2 parents 0c3e0a5 + 79490f9 commit bd2ac11

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/trivy-scan.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Trivy Scan
2+
on:
3+
push:
4+
branches:
5+
- main
6+
pull_request:
7+
jobs:
8+
build:
9+
name: Build
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Run Trivy vulnerability scanner in fs mode
16+
uses: aquasecurity/trivy-action@0.28.0
17+
with:
18+
scan-type: 'fs'
19+
scan-ref: '.'
20+
trivy-config: trivy.yaml

0 commit comments

Comments
 (0)