From 45bc830898fa94f5434da20ac33e4b0da12a4d8a Mon Sep 17 00:00:00 2001 From: Alex Misstear Date: Tue, 11 Jun 2024 23:05:40 -0400 Subject: [PATCH] Quote variables for safety --- .../0.1/eaas-get-supported-ephemeral-cluster-versions.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stepactions/eaas-get-supported-ephemeral-cluster-versions/0.1/eaas-get-supported-ephemeral-cluster-versions.yaml b/stepactions/eaas-get-supported-ephemeral-cluster-versions/0.1/eaas-get-supported-ephemeral-cluster-versions.yaml index 7de9f9d148..c1b6453db1 100644 --- a/stepactions/eaas-get-supported-ephemeral-cluster-versions/0.1/eaas-get-supported-ephemeral-cluster-versions.yaml +++ b/stepactions/eaas-get-supported-ephemeral-cluster-versions/0.1/eaas-get-supported-ephemeral-cluster-versions.yaml @@ -39,8 +39,8 @@ spec: trap 'rm -f "$KUBECONFIG"' EXIT echo "$KUBECONFIG_VALUE" > $KUBECONFIG - OC=(oc --insecure-skip-tls-verify=$INSECURE_SKIP_TLS_VERIFY) - SV=$(${OC[*]} get configmap supported-versions -n hypershift -o=jsonpath='{.data.supported-versions}') - VERSIONS=$(echo "$SV" | jq -c '.versions') + OC=(oc --insecure-skip-tls-verify="$INSECURE_SKIP_TLS_VERIFY") + SV=$("${OC[@]}" get configmap supported-versions -n hypershift -o=jsonpath='{.data.supported-versions}') + VERSIONS=$(jq -c '.versions' <<< "$SV") echo "Supported versions: $VERSIONS" echo -n "$VERSIONS" > $(step.results.versions.path)