1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-27 05:33:59 +00:00

Update retrieve secrets steps in workflows (#3705)

This commit is contained in:
Vince Grassia
2022-10-13 15:38:47 -04:00
committed by GitHub
parent f489d1b277
commit 3742732ae8
9 changed files with 89 additions and 204 deletions

View File

@@ -361,17 +361,10 @@ jobs:
- name: Retrieve secrets
id: retrieve-secrets
if: failure()
env:
KEYVAULT: bitwarden-prod-kv
SECRETS: |
devops-alerts-slack-webhook-url
run: |
for i in ${SECRETS//,/ }
do
VALUE=$(az keyvault secret show --vault-name $KEYVAULT --name $i --query value --output tsv)
echo "::add-mask::$VALUE"
echo "::set-output name=$i::$VALUE"
done
uses: bitwarden/gh-actions/get-keyvault-secrets@c3b3285993151c5af47cefcb3b9134c28ab479af
with:
keyvault: "bitwarden-prod-kv"
secrets: "devops-alerts-slack-webhook-url"
- name: Notify Slack on failure
uses: act10ns/slack@da3191ebe2e67f49b46880b4633f5591a96d1d33