Skip to content

Commit f8cd7cf

Browse files
committed
add sample security scan workflow
1 parent 6aca840 commit f8cd7cf

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Security Scan (Ruby)
2+
3+
on:
4+
push:
5+
# branches: [ main ]
6+
branches: [ VuLH ]
7+
pull_request:
8+
9+
jobs:
10+
trivy-scan:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
16+
- name: Trivy FS scan (Ruby dependencies)
17+
uses: aquasecurity/trivy-action@master
18+
with:
19+
scan-type: fs
20+
severity: HIGH,CRITICAL
21+
ignore-unfixed: true
22+
format: table
23+
output: trivy-report.txt
24+
25+
- name: Upload Trivy report
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: trivy-report
29+
path: trivy-report.txt

0 commit comments

Comments
 (0)