mirror of
https://github.com/SAP/jenkins-library.git
synced 2025-01-18 05:18:24 +02:00
checkmarxExecuteScan: added resourceRef for secrets in step yaml (#1767)
* checkmarxExecuteScan: added resourceRef for secrets in step yaml * regenerate stepmeta Co-authored-by: Christopher Fenner <26137398+CCFenner@users.noreply.github.com>
This commit is contained in:
parent
61fed83475
commit
42f91f6ff1
@ -314,7 +314,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
{
|
||||
Name: "password",
|
||||
ResourceRef: []config.ResourceReference{},
|
||||
ResourceRef: []config.ResourceReference{{Name: "checkmarxCredentialsId", Param: "password"}},
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
@ -378,7 +378,7 @@ func checkmarxExecuteScanMetadata() config.StepData {
|
||||
},
|
||||
{
|
||||
Name: "username",
|
||||
ResourceRef: []config.ResourceReference{},
|
||||
ResourceRef: []config.ResourceReference{{Name: "checkmarxCredentialsId", Param: "username"}},
|
||||
Scope: []string{"PARAMETERS", "STAGES", "STEPS"},
|
||||
Type: "string",
|
||||
Mandatory: true,
|
||||
|
@ -83,6 +83,10 @@ spec:
|
||||
- STAGES
|
||||
- STEPS
|
||||
secret: true
|
||||
resourceRef:
|
||||
- name: checkmarxCredentialsId
|
||||
type: secret
|
||||
param: password
|
||||
- name: preset
|
||||
type: string
|
||||
description: The preset to use for scanning, if not set explicitly the step will attempt to look up the project's setting based on the availability of `checkmarxCredentialsId`
|
||||
@ -157,6 +161,10 @@ spec:
|
||||
- STAGES
|
||||
- STEPS
|
||||
secret: true
|
||||
resourceRef:
|
||||
- name: checkmarxCredentialsId
|
||||
type: secret
|
||||
param: username
|
||||
- name: vulnerabilityThresholdEnabled
|
||||
type: bool
|
||||
description: Whether the thresholds are enabled or not. If enabled the build will be set to `vulnerabilityThresholdResult` in case a specific threshold value is exceeded
|
||||
|
Loading…
x
Reference in New Issue
Block a user