Skip to content

Commit 0b28d6b

Browse files
committed
chore: use OIDC
1 parent afda36a commit 0b28d6b

1 file changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/azure-dev.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,12 @@ jobs:
3535
with:
3636
terraform_version: "1.13.4"
3737

38-
- name: Log in with Azure (Federated Credentials)
39-
run: |
40-
azd auth login `
41-
--client-id "$Env:AZURE_CLIENT_ID" `
42-
--federated-credential-provider "github" `
43-
--tenant-id "$Env:AZURE_TENANT_ID"
44-
shell: pwsh
45-
38+
- name: Log in with Azure CLI (OIDC)
39+
uses: azure/login@v2
40+
with:
41+
client-id: ${{ vars.AZURE_CLIENT_ID }}
42+
tenant-id: ${{ vars.AZURE_TENANT_ID }}
43+
subscription-id: ${{ vars.AZURE_SUBSCRIPTION_ID }}
4644

4745
- name: Provision Infrastructure
4846
run: azd provision --no-prompt

0 commit comments

Comments
 (0)