From 4c47cbb786246554373aec36bf560eada64f648c Mon Sep 17 00:00:00 2001 From: Johan Rooijakkers Date: Wed, 26 Feb 2025 15:59:44 +0100 Subject: [PATCH] update --- action.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/action.yml b/action.yml index ebbd86a..54b34fd 100644 --- a/action.yml +++ b/action.yml @@ -57,14 +57,14 @@ runs: - name: Retrieve Requested Secrets shell: sh run: | - OLDIFS=$IFS - IFS=',' - set -- ${{ inputs.secrets }} - IFS=$OLDIFS + OLDIFS="$IFS" + IFS="," + set -- "${{ inputs.secrets }}" + IFS="$OLDIFS" for pair in "$@"; do - SECRET_ID=$(echo "$pair" | cut -d'=' -f1) - ENV_VAR=$(echo "$pair" | cut -d'=' -f2) + SECRET_ID=$(echo "$pair" | cut -d"=" -f1) + ENV_VAR=$(echo "$pair" | cut -d"=" -f2) echo "Retrieving secret: $SECRET_ID..." SECRET_VALUE=$(bw get notes "$SECRET_ID" --session "$BW_SESSION") @@ -76,3 +76,4 @@ runs: echo "❌ Failed to retrieve secret: $SECRET_ID" fi done +