File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change 2222 AZURE_CLIENT_ID : ${{ vars.AZURE_CLIENT_ID }}
2323 AZURE_TENANT_ID : ${{ vars.AZURE_TENANT_ID }}
2424 AZURE_SUBSCRIPTION_ID : ${{ vars.AZURE_SUBSCRIPTION_ID }}
25- AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
2625 steps :
2726 - name : Checkout
2827 uses : actions/checkout@v4
@@ -31,28 +30,13 @@ jobs:
3130 uses : Azure/setup-azd@v1.0.0
3231
3332 - name : Log in with Azure (Federated Credentials)
34- if : ${{ env.AZURE_CLIENT_ID != '' }}
3533 run : |
3634 azd auth login `
3735 --client-id "$Env:AZURE_CLIENT_ID" `
3836 --federated-credential-provider "github" `
3937 --tenant-id "$Env:AZURE_TENANT_ID"
4038 shell : pwsh
4139
42- - name : Log in with Azure (Client Credentials)
43- if : ${{ env.AZURE_CREDENTIALS != '' }}
44- run : |
45- $info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
46- Write-Host "::add-mask::$($info.clientSecret)"
47-
48- azd auth login `
49- --client-id "$($info.clientId)" `
50- --client-secret "$($info.clientSecret)" `
51- --tenant-id "$($info.tenantId)"
52- shell : pwsh
53- env :
54- AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
55-
5640 - name : Provision Infrastructure
5741 run : azd provision --no-prompt
5842 env :
You can’t perform that action at this time.
0 commit comments