Skip to content

Commit

Permalink
edit CLI choco retrieve secret (#3767)
Browse files Browse the repository at this point in the history
(cherry picked from commit 9f87fd7)
  • Loading branch information
Eeebru committed Oct 12, 2022
1 parent e526093 commit 4ad6ba1
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions .github/workflows/release-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -209,17 +209,10 @@ jobs:

- name: Retrieve secrets
id: retrieve-secrets
env:
KEYVAULT: bitwarden-prod-kv
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
uses: bitwarden/gh-actions/get-keyvault-secrets@c3b3285993151c5af47cefcb3b9134c28ab479af
with:
keyvault: "bitwarden-prod-kv"
secrets: "cli-choco-api-key"

- name: Setup Chocolatey
run: choco apikey --key $env:CHOCO_API_KEY --source https://push.chocolatey.org/
Expand Down

0 comments on commit 4ad6ba1

Please sign in to comment.