1
0
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:
lndrschlz 2020-07-20 15:44:24 +02:00 committed by GitHub
parent 61fed83475
commit 42f91f6ff1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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,

View File

@ -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