Skip to content

Commit e376178

Browse files
committed
Sync security-review.yml from .github repo
1 parent 2f71826 commit e376178

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Security Review
2+
3+
on:
4+
schedule:
5+
# Tuesday and Friday at 2:00 UTC
6+
- cron: '0 2 * * 2,5'
7+
workflow_dispatch:
8+
9+
jobs:
10+
security-review:
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 30
13+
permissions:
14+
contents: read
15+
security-events: write
16+
actions: read
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Run Trivy security scanner
22+
uses: aquasecurity/trivy-action@master
23+
with:
24+
scan-type: 'fs'
25+
scan-ref: '.'
26+
format: 'sarif'
27+
output: 'trivy-results.sarif'
28+
29+
- name: Upload Trivy results to GitHub Security tab
30+
uses: github/codeql-action/upload-sarif@v3
31+
if: always()
32+
with:
33+
sarif_file: 'trivy-results.sarif'
34+

0 commit comments

Comments
 (0)