From c3b3e828b0903d3989bfa7831666814d4a99cc63 Mon Sep 17 00:00:00 2001 From: fenix-gitea-admin Date: Sun, 7 Sep 2025 21:10:00 +0000 Subject: [PATCH] [deploy-opentofu] --- .gitea/workflows/ci-test.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci-test.yaml b/.gitea/workflows/ci-test.yaml index 0f5759e..96fa359 100644 --- a/.gitea/workflows/ci-test.yaml +++ b/.gitea/workflows/ci-test.yaml @@ -131,13 +131,14 @@ jobs: - name: vaultwarden getsecrets working-directory: infra/iac run: | + BW_SESSION2=$(bw unlock --raw) # Ler o arquivo de referĂȘncia for secret in $(jq -c '.secrets[]' secrets/vault-secrets-map.json); do name=$(echo "$secret" | jq -r '.name') type=$(echo "$secret" | jq -r '.type') output=$(echo "$secret" | jq -r '.output') echo "$name $type $output" - item_id=$(bw get item "$name" | jq -r '.id') + item_id=$(bw get item "$name" --session "$BW_SESSION2" | jq -r '.id') echo "$item_id" if [ "$type" == "attachment" ]; then echo "attachment get"