File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
import com.cloudogu.ces.cesbuildlib.*
4
4
5
5
String getDockerRegistryBaseUrl () { ' ghcr.io' }
6
-
7
6
String getDockerImageName () { ' cloudogu/gitops-playground' }
7
+ String getTrivyVersion () { ' 0.55.0' }
8
8
9
9
properties([
10
10
// Dont keep builds forever to preserve space
@@ -207,7 +207,8 @@ def scanForCriticalVulns(String imageName, String fileName){
207
207
trivyConfig = [
208
208
imageName : imageName,
209
209
severity : [' CRITICAL' ],
210
- additionalFlags : ' --ignore-unfixed'
210
+ additionalFlags : ' --ignore-unfixed' ,
211
+ trivyVersion : trivyVersion
211
212
]
212
213
213
214
def vulns = findVulnerabilitiesWithTrivy(trivyConfig)
@@ -221,7 +222,8 @@ def scanForCriticalVulns(String imageName, String fileName){
221
222
222
223
def scanForAllVulns (String imageName , String fileName ){
223
224
trivyConfig = [
224
- imageName : imageName
225
+ imageName : imageName,
226
+ trivyVersion : trivyVersion
225
227
]
226
228
227
229
def vulns = findVulnerabilitiesWithTrivy(trivyConfig)
You can’t perform that action at this time.
0 commit comments