From 7cd0797478fc7e361bb6d658b9e38f9804fa775a Mon Sep 17 00:00:00 2001 From: Ahzem <123859613+Ahzem@users.noreply.github.com> Date: Mon, 16 Dec 2024 17:36:11 +0530 Subject: [PATCH] Update deployment workflow; add permissions for id-token and contents, and enable AzPSSession for Azure deployment --- .github/workflows/deploy-subtracker.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/deploy-subtracker.yml b/.github/workflows/deploy-subtracker.yml index 2014299..ad352a3 100644 --- a/.github/workflows/deploy-subtracker.yml +++ b/.github/workflows/deploy-subtracker.yml @@ -8,6 +8,10 @@ env: AZURE_WEBAPP_NAME: subtracker # Replace with your app name NODE_VERSION: '18.x' +permissions: + id-token: write + contents: read + jobs: build-and-deploy: runs-on: ubuntu-latest @@ -32,6 +36,7 @@ jobs: client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID }} tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID }} subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID }} + enable-AzPSSession: true - name: Deploy to Azure Web App