File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -129,28 +129,13 @@ jobs:
129129 node-version : 18
130130
131131 - name : Log in with Azure (Federated Credentials)
132- if : ${{ env.AZURE_CLIENT_ID != '' }}
133132 run : |
134133 azd auth login `
135134 --client-id "$Env:AZURE_CLIENT_ID" `
136135 --federated-credential-provider "github" `
137136 --tenant-id "$Env:AZURE_TENANT_ID"
138137 shell : pwsh
139138
140- - name : Log in with Azure (Client Credentials)
141- if : ${{ env.AZURE_CREDENTIALS != '' }}
142- run : |
143- $info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
144- Write-Host "::add-mask::$($info.clientSecret)"
145-
146- azd auth login `
147- --client-id "$($info.clientId)" `
148- --client-secret "$($info.clientSecret)" `
149- --tenant-id "$($info.tenantId)"
150- shell : pwsh
151- env :
152- AZURE_CREDENTIALS : ${{ secrets.AZURE_CREDENTIALS }}
153-
154139 - name : Provision Infrastructure
155140 run : azd provision --no-prompt
156141 env :
Original file line number Diff line number Diff line change @@ -159,7 +159,6 @@ jobs:
159159 az account set --subscription ${{env.AZURE_SUBSCRIPTION_ID}}
160160
161161 - name : Login to with Azure with azd (Federated Credentials)
162- if : ${{ env.AZURE_CLIENT_ID != '' }}
163162 run : |
164163 azd auth login `
165164 --client-id "$Env:AZURE_CLIENT_ID" `
You can’t perform that action at this time.
0 commit comments