-
Notifications
You must be signed in to change notification settings - Fork 21
32 lines (28 loc) · 794 Bytes
/
trivy.yml
File metadata and controls
32 lines (28 loc) · 794 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
name: trivy
on:
push:
branches:
- main
pull_request:
jobs:
job-trivy:
name: Run trivy for license check
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out source code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Set up Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version-file: go.mod
- name: Run trivy
uses: aquasecurity/trivy-action@ed142fd0673e97e23eac54620cfb913e5ce36c25 # 0.36.0
with:
scan-type: 'fs'
scanners: 'license'
target: '.'
format: 'table'
exit-code: '1'
severity: 'UNKNOWN,MEDIUM,HIGH'