Skip to content

Commit 0228b35

Browse files
Copilotpamelafox
andauthored
Remove conditional Azure login steps and simplify authentication in deployment workflows (#2625)
* Initial plan * Remove conditional Azure login and simplify authentication Co-authored-by: pamelafox <297042+pamelafox@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: pamelafox <297042+pamelafox@users.noreply.github.com>
1 parent 2414b85 commit 0228b35

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

.github/workflows/azure-dev.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff 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:

.github/workflows/evaluate.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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" `

0 commit comments

Comments
 (0)