From ea978056b9e2d049f7d48eb735b72d14f8a5905c Mon Sep 17 00:00:00 2001 From: Shilpi Rachna Date: Sun, 21 Jul 2024 22:45:59 +0530 Subject: [PATCH] Fixing test workflow --- .../workflows/pr_check_windows_container_pubprofile.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr_check_windows_container_pubprofile.yml b/.github/workflows/pr_check_windows_container_pubprofile.yml index cdf72b108..d3bc1588b 100644 --- a/.github/workflows/pr_check_windows_container_pubprofile.yml +++ b/.github/workflows/pr_check_windows_container_pubprofile.yml @@ -12,6 +12,9 @@ on: - master - 'releases/*' +permissions: + id-token: write + env: AZURE_WEBAPP_NAME: wincontainerswebapp # set this to your application's name CONTAINER_REGISTRY: webdeployprtestscontainerregistry.azurecr.io # set secret with Container Registry URL, example : xyz.azurecr.io @@ -31,9 +34,11 @@ jobs: path: 'python_container_App' - name: Azure authentication - uses: azure/login@v1 + uses: azure/login@v2 with: - creds: ${{ secrets.AZURE_WEBAPP_SPN }} + client-id: ${{ secrets.AZURE_CLIENT_ID }} + tenant-id: ${{ secrets.AZURE_TENANT_ID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: Logout from Azure Container Registry run: |