File tree 2 files changed +6
-21
lines changed
2 files changed +6
-21
lines changed Original file line number Diff line number Diff line change 17
17
timeout-minutes : 75
18
18
run : |
19
19
./mvnw -B -s .github/settings.xml -Pdocs clean install
20
- scan :
21
- runs-on : ubuntu-latest
22
- steps :
23
- - uses : actions/checkout@v4
24
- - name : Run Trivy vulnerability scanner in repo mode
25
- uses : aquasecurity/trivy-action@master
26
- with :
27
- scan-type : ' fs'
28
- ignore-unfixed : true
29
- format : ' table'
30
- severity : ' CRITICAL,HIGH'
31
- - name : ' Scanned'
32
- shell : bash
33
- run : echo "::info ::Scanned"
34
- done :
35
- runs-on : ubuntu-latest
36
- needs : [ scan, build ]
37
- steps :
38
- - name : ' Done'
39
- shell : bash
40
- run : echo "::info ::Done"
Original file line number Diff line number Diff line change @@ -2,6 +2,11 @@ name: CI
2
2
3
3
on :
4
4
workflow_dispatch :
5
+ inputs :
6
+ enableSecurityScan :
7
+ type : boolean
8
+ default : false
9
+ description : ' Enable security scan with Trivy'
5
10
push :
6
11
branches :
7
12
- ' 2.11.x'
@@ -188,6 +193,7 @@ jobs:
188
193
GCR_JSON_KEY : ${{ secrets.GCR_JSON_KEY }}
189
194
scan :
190
195
runs-on : ubuntu-latest
196
+ if : ${{ inputs.enableSecurityScan != null && inputs.enableSecurityScan }}
191
197
steps :
192
198
- uses : actions/checkout@v4
193
199
- name : Run Trivy vulnerability scanner in repo mode
You can’t perform that action at this time.
0 commit comments