Skip to content

Commit a0ace9f

Browse files
committed
fix: update Azure login step to use individual credentials and add permissions section
1 parent 570e317 commit a0ace9f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ env:
99
RESOURCE_GROUP: rg-a11y-scan-demo
1010
APP_NAME: a11y-scan-demo
1111

12+
permissions:
13+
id-token: write
14+
contents: read
15+
1216
jobs:
1317
build-and-deploy:
1418
runs-on: ubuntu-latest
@@ -20,7 +24,9 @@ jobs:
2024
- name: Azure Login
2125
uses: azure/login@v2
2226
with:
23-
creds: ${{ secrets.AZURE_CREDENTIALS }}
27+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
28+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
29+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2430

2531
- name: Deploy infrastructure
2632
uses: azure/arm-deploy@v2

0 commit comments

Comments
 (0)