From f9ad6dc048f47ea1c42c65f4be354afa736d9c24 Mon Sep 17 00:00:00 2001 From: Oliver Nocon <33484802+OliverNocon@users.noreply.github.com> Date: Tue, 8 Mar 2022 08:59:12 +0100 Subject: [PATCH] fix(whitesourceExecuteScan): orgToken from Vault (#3614) supersedes #3168 --- cmd/whitesourceExecuteScan_generated.go | 6 ++++++ resources/metadata/whitesourceExecuteScan.yaml | 3 +++ 2 files changed, 9 insertions(+) diff --git a/cmd/whitesourceExecuteScan_generated.go b/cmd/whitesourceExecuteScan_generated.go index fef6de61b..658f8f372 100644 --- a/cmd/whitesourceExecuteScan_generated.go +++ b/cmd/whitesourceExecuteScan_generated.go @@ -616,6 +616,12 @@ func whitesourceExecuteScanMetadata() config.StepData { Name: "orgAdminUserTokenCredentialsId", Type: "secret", }, + + { + Name: "whitesourceVaultSecret", + Type: "vaultSecret", + Default: "whitesource", + }, }, Scope: []string{"GENERAL", "PARAMETERS", "STAGES", "STEPS"}, Type: "string", diff --git a/resources/metadata/whitesourceExecuteScan.yaml b/resources/metadata/whitesourceExecuteScan.yaml index de67406ca..628ef5906 100644 --- a/resources/metadata/whitesourceExecuteScan.yaml +++ b/resources/metadata/whitesourceExecuteScan.yaml @@ -257,6 +257,9 @@ spec: resourceRef: - name: orgAdminUserTokenCredentialsId type: secret + - type: vaultSecret + name: whitesourceVaultSecret + default: whitesource - name: productName aliases: - name: whitesourceProductName