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 
			
		
		
		
	feature(protecodeExecuteScan) proper Vault support (#2483)
This commit is contained in:
		| @@ -321,6 +321,12 @@ func protecodeExecuteScanMetadata() config.StepData { | ||||
| 								Param: "username", | ||||
| 								Type:  "secret", | ||||
| 							}, | ||||
|  | ||||
| 							{ | ||||
| 								Name:  "", | ||||
| 								Paths: []string{"$(vaultPath)/protecode", "$(vaultBasePath)/$(vaultPipelineName)/protecode", "$(vaultBasePath)/GROUP-SECRETS/protecode"}, | ||||
| 								Type:  "vaultSecret", | ||||
| 							}, | ||||
| 						}, | ||||
| 						Scope:     []string{"PARAMETERS", "STAGES", "STEPS"}, | ||||
| 						Type:      "string", | ||||
| @@ -335,6 +341,12 @@ func protecodeExecuteScanMetadata() config.StepData { | ||||
| 								Param: "password", | ||||
| 								Type:  "secret", | ||||
| 							}, | ||||
|  | ||||
| 							{ | ||||
| 								Name:  "", | ||||
| 								Paths: []string{"$(vaultPath)/protecode", "$(vaultBasePath)/$(vaultPipelineName)/protecode", "$(vaultBasePath)/GROUP-SECRETS/protecode"}, | ||||
| 								Type:  "vaultSecret", | ||||
| 							}, | ||||
| 						}, | ||||
| 						Scope:     []string{"PARAMETERS", "STAGES", "STEPS"}, | ||||
| 						Type:      "string", | ||||
|   | ||||
| @@ -174,6 +174,11 @@ spec: | ||||
|           - name: protecodeCredentialsId | ||||
|             type: secret | ||||
|             param: username | ||||
|           - type: vaultSecret | ||||
|             paths: | ||||
|               - $(vaultPath)/protecode | ||||
|               - $(vaultBasePath)/$(vaultPipelineName)/protecode | ||||
|               - $(vaultBasePath)/GROUP-SECRETS/protecode | ||||
|       - name: password | ||||
|         type: string | ||||
|         description: Password which is used for the user | ||||
| @@ -187,6 +192,11 @@ spec: | ||||
|           - name: protecodeCredentialsId | ||||
|             type: secret | ||||
|             param: password | ||||
|           - type: vaultSecret | ||||
|             paths: | ||||
|               - $(vaultPath)/protecode | ||||
|               - $(vaultBasePath)/$(vaultPipelineName)/protecode | ||||
|               - $(vaultBasePath)/GROUP-SECRETS/protecode | ||||
|       - name: artifactVersion | ||||
|         type: string | ||||
|         description: The version of the artifact to allow identification in protecode backend | ||||
|   | ||||
		Reference in New Issue
	
	Block a user