Skip to content

Commit 48ca679

Browse files
Merge pull request #434 from Azure/shilpirachna1/cifixv3
Fixing the test CI workflows
2 parents de617f4 + a5be3a6 commit 48ca679

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/pr_check_webapp_dotnet_windows.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- master
1313
- 'releases/*'
1414

15+
permissions:
16+
id-token: write
17+
1518
# CONFIGURATION
1619
# For help, go to https://github.com/Azure/Actions
1720
#
@@ -75,9 +78,11 @@ jobs:
7578
}
7679
7780
- name: Azure authentication
78-
uses: azure/login@v1
81+
uses: azure/login@v2
7982
with:
80-
creds: ${{ secrets.AZURE_WEBAPP_SPN }}
83+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
84+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
85+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
8186

8287
- name: 'Deploy to Azure WebApp'
8388
uses: ./webapps-deploy/

.github/workflows/pr_check_windows_container_pubprofile.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- master
1313
- 'releases/*'
1414

15+
permissions:
16+
id-token: write
17+
1518
env:
1619
AZURE_WEBAPP_NAME: wincontainerswebapp # set this to your application's name
1720
CONTAINER_REGISTRY: webdeployprtestscontainerregistry.azurecr.io # set secret with Container Registry URL, example : xyz.azurecr.io
@@ -31,9 +34,11 @@ jobs:
3134
path: 'python_container_App'
3235

3336
- name: Azure authentication
34-
uses: azure/login@v1
37+
uses: azure/login@v2
3538
with:
36-
creds: ${{ secrets.AZURE_WEBAPP_SPN }}
39+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
40+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
41+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
3742

3843
- name: Logout from Azure Container Registry
3944
run: |

0 commit comments

Comments
 (0)