Skip to content

Commit 2d2cdd3

Browse files
authored
Merge pull request #97 from pamelafox/copilot/fix-96
Remove conditional from Azure login step in deployment workflow
2 parents 01b4fa1 + 82a656c commit 2d2cdd3

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

.github/workflows/azure-dev.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
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:

0 commit comments

Comments
 (0)