Skip to content

Commit

Permalink
BRE-505 Use GitHub token from KeyVault (#172)
Browse files Browse the repository at this point in the history
  • Loading branch information
michalchecinski authored Dec 20, 2024
1 parent a53c571 commit 0635943
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,21 @@ jobs:
permissions: {} # no permissions required

steps:
- name: Log in to Azure - CI subscription
uses: Azure/login@e15b166166a8746d1a47596803bd8c1b595455cf # v1.6.0
with:
creds: ${{ secrets.AZURE_KV_CI_SERVICE_PRINCIPAL }}

- name: Retrieve GitHub PAT secrets
id: retrieve-secret-pat
uses: bitwarden/gh-actions/get-keyvault-secrets@main
with:
keyvault: "bitwarden-ci"
secrets: "github-pat-bitwarden-devops-bot-repo-scope"

- name: Dispatch deployment
env:
GITHUB_TOKEN: ${{ secrets.DEPLOYMENT_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.retrieve-secret-pat.outputs.github-pat-bitwarden-devops-bot-repo-scope }}
run: >
gh workflow run deploy-passwordless-dotnet
--repo bitwarden/passwordless-devops
Expand Down

0 comments on commit 0635943

Please sign in to comment.