You've already forked sap-jenkins-library
							
							
				mirror of
				https://github.com/SAP/jenkins-library.git
				synced 2025-10-30 23:57:50 +02:00 
			
		
		
		
	Fix whitesource issue (#2963)
Co-authored-by: Sven Merk <33895725+nevskrem@users.noreply.github.com>
This commit is contained in:
		| @@ -542,13 +542,18 @@ func whitesourceExecuteScanMetadata() config.StepData { | ||||
| 						Default:     true, | ||||
| 					}, | ||||
| 					{ | ||||
| 						Name:        "scanImage", | ||||
| 						ResourceRef: []config.ResourceReference{}, | ||||
| 						Scope:       []string{"PARAMETERS", "STAGES", "STEPS"}, | ||||
| 						Type:        "string", | ||||
| 						Mandatory:   false, | ||||
| 						Aliases:     []config.Alias{}, | ||||
| 						Default:     os.Getenv("PIPER_scanImage"), | ||||
| 						Name: "scanImage", | ||||
| 						ResourceRef: []config.ResourceReference{ | ||||
| 							{ | ||||
| 								Name:  "commonPipelineEnvironment", | ||||
| 								Param: "container/imageNameTag", | ||||
| 							}, | ||||
| 						}, | ||||
| 						Scope:     []string{"PARAMETERS", "STAGES", "STEPS"}, | ||||
| 						Type:      "string", | ||||
| 						Mandatory: false, | ||||
| 						Aliases:   []config.Alias{}, | ||||
| 						Default:   os.Getenv("PIPER_scanImage"), | ||||
| 					}, | ||||
| 					{ | ||||
| 						Name:        "scanImageIncludeLayers", | ||||
| @@ -560,13 +565,18 @@ func whitesourceExecuteScanMetadata() config.StepData { | ||||
| 						Default:     true, | ||||
| 					}, | ||||
| 					{ | ||||
| 						Name:        "scanImageRegistryUrl", | ||||
| 						ResourceRef: []config.ResourceReference{}, | ||||
| 						Scope:       []string{"PARAMETERS", "STAGES", "STEPS"}, | ||||
| 						Type:        "string", | ||||
| 						Mandatory:   false, | ||||
| 						Aliases:     []config.Alias{}, | ||||
| 						Default:     os.Getenv("PIPER_scanImageRegistryUrl"), | ||||
| 						Name: "scanImageRegistryUrl", | ||||
| 						ResourceRef: []config.ResourceReference{ | ||||
| 							{ | ||||
| 								Name:  "commonPipelineEnvironment", | ||||
| 								Param: "container/registryUrl", | ||||
| 							}, | ||||
| 						}, | ||||
| 						Scope:     []string{"PARAMETERS", "STAGES", "STEPS"}, | ||||
| 						Type:      "string", | ||||
| 						Mandatory: false, | ||||
| 						Aliases:   []config.Alias{}, | ||||
| 						Default:   os.Getenv("PIPER_scanImageRegistryUrl"), | ||||
| 					}, | ||||
| 					{ | ||||
| 						Name:        "securityVulnerabilities", | ||||
|   | ||||
| @@ -292,6 +292,9 @@ spec: | ||||
|       - name: scanImage | ||||
|         type: string | ||||
|         description: "For `buildTool: docker`: Defines the docker image which should be scanned." | ||||
|         resourceRef: | ||||
|           - name: commonPipelineEnvironment | ||||
|             param: container/imageNameTag | ||||
|         scope: | ||||
|           - PARAMETERS | ||||
|           - STAGES | ||||
| @@ -307,6 +310,9 @@ spec: | ||||
|       - name: scanImageRegistryUrl | ||||
|         type: string | ||||
|         description: "For `buildTool: docker`: Defines the registry where the scanImage is located." | ||||
|         resourceRef: | ||||
|           - name: commonPipelineEnvironment | ||||
|             param: container/registryUrl | ||||
|         scope: | ||||
|           - PARAMETERS | ||||
|           - STAGES | ||||
|   | ||||
		Reference in New Issue
	
	Block a user