edit CLI choco retrieve secret (#3767)

This commit is contained in:
Opeyemi 2022-10-12 16:31:20 +01:00 committed by GitHub
parent 6542dfd50f
commit 9f87fd7f57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 11 deletions

View File

@ -209,17 +209,10 @@ jobs:
- name: Retrieve secrets - name: Retrieve secrets
id: retrieve-secrets id: retrieve-secrets
env: uses: bitwarden/gh-actions/get-keyvault-secrets@c3b3285993151c5af47cefcb3b9134c28ab479af
KEYVAULT: bitwarden-prod-kv with:
SECRETS: | keyvault: "bitwarden-prod-kv"
cli-choco-api-key secrets: "cli-choco-api-key"
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
- name: Setup Chocolatey - name: Setup Chocolatey
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/ run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/