From 1b85a0c9beb0b77c11af0739933051e474a19706 Mon Sep 17 00:00:00 2001 From: Prajyot-Parab Date: Tue, 2 Apr 2024 16:28:59 +0530 Subject: [PATCH] Enhance security exposure patch Signed-off-by: Prajyot-Parab --- scripts/ci-e2e.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/scripts/ci-e2e.sh b/scripts/ci-e2e.sh index 18dfef21d..4af56960b 100755 --- a/scripts/ci-e2e.sh +++ b/scripts/ci-e2e.sh @@ -142,7 +142,7 @@ prerequisites_vpc(){ export PROVIDER_ID_FORMAT=v2 export EXP_CLUSTER_RESOURCE_SET=true export IBMACCOUNT_ID=${IBMACCOUNT_ID:-"7cfbd5381a434af7a09289e795840d4e"} - export BASE64_API_KEY=$(echo -n $IBMCLOUD_API_KEY | base64) + export BASE64_API_KEY=$(tr -d '\n' <<<"$IBMCLOUD_API_KEY" | base64) } main(){ @@ -199,5 +199,9 @@ main(){ [ -z "${BOSKOS_HOST:-}" ] || release_account >> "$ARTIFACTS/logs/boskos.log" 2>&1 } +if [[ $- =~ x ]]; then + set +x +fi + main "$@" exit "${test_status}"