Skip to content

Commit 16947e4

Browse files
authored
ci: add Trivy security scan (#1)
1 parent 6e57c26 commit 16947e4

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/security.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Security
2+
3+
on:
4+
push:
5+
branches: ["master"]
6+
pull_request:
7+
schedule:
8+
- cron: "0 6 * * 1"
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
trivy:
15+
name: Trivy Security Scan
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Trivy scan (deps, secrets, IaC, Dockerfiles)
20+
uses: aquasecurity/trivy-action@v0.36.0
21+
with:
22+
scan-type: fs
23+
scan-ref: .
24+
scanners: vuln,secret,misconfig
25+
severity: CRITICAL,HIGH
26+
ignore-unfixed: true
27+
format: table
28+
exit-code: "0"

0 commit comments

Comments
 (0)