Skip to content

Commit b273091

Browse files
committed
Updated workflow
1 parent 2fe4131 commit b273091

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/azure-dev.yaml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,20 @@ jobs:
1515
- name: Checkout
1616
uses: actions/checkout@v2
1717

18-
- name: Log in with Azure
18+
- name: Log in with Azure (Federated Credentials)
19+
if: ${{ env.AZURE_CLIENT_ID != '' }}
20+
run: |
21+
azd login `
22+
--client-id "$Env:AZURE_CLIENT_ID" `
23+
--federated-credential-provider "github" `
24+
--tenant-id "$Env:AZURE_TENANT_ID"
25+
shell: pwsh
26+
27+
- name: Log in with Azure (Client Credentials)
28+
if: ${{ env.AZURE_CREDENTIALS != '' }}
1929
run: |
2030
$info = $Env:AZURE_CREDENTIALS | ConvertFrom-Json -AsHashtable;
2131
Write-Host "::add-mask::$($info.clientSecret)"
22-
2332
azd login `
2433
--client-id "$($info.clientId)" `
2534
--client-secret "$($info.clientSecret)" `

0 commit comments

Comments
 (0)