Skip to content

Commit 0ab1b87

Browse files
committed
Refactor Azure login step to use credentials JSON format for improved security
1 parent d0124cb commit 0ab1b87

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/azure-deploy.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,7 @@ jobs:
2525
- name: Azure Login
2626
uses: azure/[email protected]
2727
with:
28-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
29-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
30-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
28+
creds: '{"clientId":"${{ secrets.AZURE_CLIENT_ID }}","clientSecret":"${{ secrets.AZURE_CLIENT_SECRET }}","subscriptionId":"${{ secrets.AZURE_SUBSCRIPTION_ID }}","tenantId":"${{ secrets.AZURE_TENANT_ID }}"}'
3129
enable-AzPSSession: false
3230
environment: azurecloud
3331
allow-no-subscriptions: false

0 commit comments

Comments
 (0)