fix/stop-showing-secrets #6

Merged
jamie merged 6 commits from fix/stop-showing-secrets into main 2026-04-17 13:53:47 +00:00
Showing only changes of commit 098308b84c - Show all commits
+5 -9
View File
@@ -33,19 +33,15 @@ runs:
shell: sh
run: bw config server "${{ inputs.server }}"
- name: Unlock Vault
- name: Unlock vault and retrieve secrets
shell: sh
run: |
bw login --apikey
BW_SESSION=$(bw unlock '${{ inputs.password }}' --raw)
echo "BW_SESSION=$BW_SESSION" >> $GITHUB_ENV
env:
BW_CLIENTID: "${{ inputs.client-id }}"
BW_CLIENTSECRET: "${{ inputs.client-secret }}"
- name: Retrieve Secrets
shell: sh
run: |
bw login --apikey
BW_SESSION=$(bw unlock '${{ inputs.password }}' --raw)
echo "${{ inputs.secrets }}" | while IFS='>' read SECRET_ID ENV_VAR; do
SECRET_ID=$(echo "$SECRET_ID" | sed 's/^ *//;s/ *$//')
ENV_VAR=$(echo "$ENV_VAR" | sed 's/^ *//;s/ *$//')
@@ -54,7 +50,7 @@ runs:
continue
fi
echo "🔍 Retrieving secret"
echo "🔍 Retrieving secret: $SECRET_ID"
SECRET_VALUE=$(bw get notes "$SECRET_ID" --session "$BW_SESSION" --raw 2>/dev/null)
if [ -n "$SECRET_VALUE" ]; then