File tree 2 files changed +63
-0
lines changed
2 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Same as '--severity'
2
+ # Default is all severities
3
+ severity :
4
+ - HIGH
5
+ - CRITICAL
6
+
7
+ scan :
8
+ # Same as '--security-checks'
9
+ # Default depends on subcommand
10
+ security-checks :
11
+ - vuln
12
+
13
+ vulnerability :
14
+ # Same as '--vuln-type'
15
+ # Default is 'os,library'
16
+ type :
17
+ - library
18
+
19
+ # Same as '--format'
20
+ format : sarif
21
+
22
+ # Same as '--output'
23
+ # Used to upload sarif to GitHub Security tab
24
+ output : trivy-results.sarif
25
+
26
+ # Same as '--ignore-unfixed'
27
+ ignore-unfixed : false
28
+
29
+ # Same as '--list-all-pkgs'
30
+ list-all-pkgs : false
31
+
32
+ # Same as '--exit-code'
33
+ # Zero as we are only reporting for now, not enforcing
34
+ exit-code : 0
Original file line number Diff line number Diff line change
1
+ name : TRIVY PIPELINE
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - opened
7
+ - synchronize
8
+
9
+ branches :
10
+ - trivy-test
11
+ - main
12
+
13
+ concurrency :
14
+ group : ${{ github.event.number }}
15
+ cancel-in-progress : true
16
+
17
+ jobs :
18
+ trivy-checker :
19
+ runs-on : [self-hosted, normal]
20
+ name : RUN
21
+ steps :
22
+ - name : Run Trivy vulnerability scanner
23
+ uses : aquasecurity/trivy-action@d710430a6722f083d3b36b8339ff66b32f22ee55 # 0.19.0
24
+ env :
25
+ TMPDIR : ${{ github.workspace }}/trivy_temp # Required to prevent Trivy running out of space
26
+ with :
27
+ image-ref : " registry.cn-zhangjiakou.aliyuncs.com/starrocks/dev-env-centos7:3.1-latest"
28
+ scan-type : " image"
29
+ trivy-config : " .trivy.yaml"
You can’t perform that action at this time.
0 commit comments