-
Notifications
You must be signed in to change notification settings - Fork 8
31 lines (31 loc) · 914 Bytes
/
security.yml
File metadata and controls
31 lines (31 loc) · 914 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: 'Run Security Tests'
on:
push:
branches:
- main
- dev
pull_request:
schedule:
- cron: '* * * * 0' # run weekly
permissions:
contents: read
actions: read
checks: write
security-events: write
jobs:
report:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Run Trivy vulnerability scanner in repo mode
uses: aquasecurity/trivy-action@57a97c7e7821a5776cebc9bb87c984fa69cba8f1 # 0.35.0
with:
scan-type: 'fs'
format: 'sarif'
output: 'trivy-results-fs.sarif'
severity: 'CRITICAL,HIGH,MEDIUM'
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@c10b8064de6f491fea524254123dbe5e09572f13 # v4
with:
sarif_file: 'trivy-results-fs.sarif'