generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (39 loc) · 907 Bytes
/
security.yml
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
37
38
39
40
41
42
43
44
45
46
47
name: Scan with Trivy
on:
push:
branches:
- main
pull_request:
branches:
- "**"
schedule:
# Run once every morning
- cron: "36 7 * * *"
jobs:
trivy:
name: Trivy
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
scan-type:
- fs
- config
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Run Trivy
uses: aquasecurity/[email protected]
with:
scan-ref: .
scan-type: ${{ matrix.scan-type }}
output: trivy-report.sarif.json
format: sarif
ignore-unfixed: true
hide-progress: false
- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v3
if: always()
with:
sarif_file: trivy-report.sarif.json