add secrets #1

Merged
jamie merged 30 commits from feature/add-secrets into main 2025-02-27 14:16:41 +00:00
Showing only changes of commit 4c47cbb786 - Show all commits

View File

@ -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