-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (32 loc) · 826 Bytes
/
security.yml
File metadata and controls
36 lines (32 loc) · 826 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
32
33
34
35
36
name: Security
on:
schedule:
- cron: '0 5 * * 1-5'
workflow_dispatch:
jobs:
scan-code:
name: Scan code
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Trivy source code
uses: aquasecurity/trivy-action@0.35.0
with:
scan-type: fs
scan-ref: .
scanners: vuln
severity: CRITICAL,HIGH
format: sarif
output: trivy-results.sarif
ignore-unfixed: true
limit-severities-for-sarif: true
timeout: 15m
- name: Upload Trivy source code report
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-results.sarif
category: source-code