From ae7d3a1432802b25ffabbe536cadd16221a3a51d Mon Sep 17 00:00:00 2001 From: Vadim Kharin Date: Wed, 18 Jun 2025 12:46:34 +0300 Subject: [PATCH 1/3] Add ability to use secret variables in codefresh-run step --- graduated/codefresh-run/step.yaml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/graduated/codefresh-run/step.yaml b/graduated/codefresh-run/step.yaml index 7aa871d3b..61483be81 100644 --- a/graduated/codefresh-run/step.yaml +++ b/graduated/codefresh-run/step.yaml @@ -3,7 +3,7 @@ kind: step-type metadata: name: codefresh-run title: Run a Codefresh pipeline - version: 1.5.3 + version: 1.5.4 isPublic: true description: Run a Codefresh pipeline by ID or name and attach the created build logs. sources: @@ -55,7 +55,7 @@ spec: "type": "string", "description": "Custom image of codefresh-run step", "examples": ["latest-debian"], - "default": "0.84.7" + "default": "0.89.0" }, "PIPELINE_ID": { "type": "string", @@ -137,6 +137,15 @@ spec: "examples": ["key=val"], "default": [] }, + "SECRET": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Set build secrets.", + "examples": ["key=val"], + "default": [] + }, "VARIABLE_FILE": { "type": "string", "description": "Import build variables from a file.", @@ -217,6 +226,9 @@ spec: [[ range .Arguments.VARIABLE ]] [[- $cmd = (printf "%s --variable %s" $cmd .) -]] [[- end -]] + [[ range .Arguments.SECRET ]] + [[- $cmd = (printf "%s --secret %s" $cmd .) -]] + [[- end -]] [[ if .Arguments.VARIABLE_FILE ]] [[- $cmd = (printf "%s --var-file %s" $cmd .Arguments.VARIABLE_FILE) -]] [[- end -]] From c6eec5d9e2c09d033188b094ef2523f4f87bb4f1 Mon Sep 17 00:00:00 2001 From: Vadim Kharin Date: Thu, 19 Jun 2025 17:13:05 +0300 Subject: [PATCH 2/3] Add ability to use secret variables in codefresh-run step --- graduated/codefresh-run/step.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graduated/codefresh-run/step.yaml b/graduated/codefresh-run/step.yaml index 61483be81..5c8d68fc3 100644 --- a/graduated/codefresh-run/step.yaml +++ b/graduated/codefresh-run/step.yaml @@ -3,7 +3,7 @@ kind: step-type metadata: name: codefresh-run title: Run a Codefresh pipeline - version: 1.5.4 + version: 1.6.0 isPublic: true description: Run a Codefresh pipeline by ID or name and attach the created build logs. sources: @@ -55,7 +55,7 @@ spec: "type": "string", "description": "Custom image of codefresh-run step", "examples": ["latest-debian"], - "default": "0.89.0" + "default": "0.89.1" }, "PIPELINE_ID": { "type": "string", From 749a1084eefcb1788fcbd4753b278ef9c3eacc29 Mon Sep 17 00:00:00 2001 From: Vadim Kharin Date: Thu, 19 Jun 2025 17:14:35 +0300 Subject: [PATCH 3/3] Add ability to use secret variables in codefresh-run step --- graduated/codefresh-run/step.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graduated/codefresh-run/step.yaml b/graduated/codefresh-run/step.yaml index 5c8d68fc3..917885e97 100644 --- a/graduated/codefresh-run/step.yaml +++ b/graduated/codefresh-run/step.yaml @@ -137,7 +137,7 @@ spec: "examples": ["key=val"], "default": [] }, - "SECRET": { + "SECRETS": { "type": "array", "items": { "type": "string" @@ -226,7 +226,7 @@ spec: [[ range .Arguments.VARIABLE ]] [[- $cmd = (printf "%s --variable %s" $cmd .) -]] [[- end -]] - [[ range .Arguments.SECRET ]] + [[ range .Arguments.SECRETS ]] [[- $cmd = (printf "%s --secret %s" $cmd .) -]] [[- end -]] [[ if .Arguments.VARIABLE_FILE ]]