Skip to content

Commit 9e1dd4c

Browse files
Update Azure Functions workflow to set package path and format permissions
1 parent 7adef6f commit 9e1dd4c

File tree

1 file changed

+11
-12
lines changed

1 file changed

+11
-12
lines changed

.github/workflows/main_githubapp.yml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,25 @@ on:
1010
workflow_dispatch:
1111

1212
env:
13-
AZURE_FUNCTIONAPP_PACKAGE_PATH: '.' # set this to the path to your web app project, defaults to the repository root
13+
AZURE_FUNCTIONAPP_PACKAGE_PATH: 'app' # set this to the path to your web app project, defaults to the repository root
1414

1515
jobs:
1616
deploy:
1717
runs-on: ubuntu-latest
18-
permissions:
19-
id-token: write #This is required for requesting the JWT
20-
contents: read #This is required for actions/checkout
18+
permissions:
19+
id-token: write #This is required for requesting the JWT
20+
contents: read #This is required for actions/checkout
2121

2222
steps:
2323
- name: 'Checkout GitHub Action'
2424
uses: actions/checkout@v4
25-
26-
- name: Login to Azure
27-
uses: azure/login@v2
28-
with:
29-
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_5B7262379C714FDD8F543FCDB4CD09E0 }}
30-
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_14768B6F7A154A4E80DAC92C45C70B6C }}
31-
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_6B331574B8904D9DADE2037DD9BB0B68 }}
25+
26+
- name: Login to Azure
27+
uses: azure/login@v2
28+
with:
29+
client-id: ${{ secrets.AZUREAPPSERVICE_CLIENTID_5B7262379C714FDD8F543FCDB4CD09E0 }}
30+
tenant-id: ${{ secrets.AZUREAPPSERVICE_TENANTID_14768B6F7A154A4E80DAC92C45C70B6C }}
31+
subscription-id: ${{ secrets.AZUREAPPSERVICE_SUBSCRIPTIONID_6B331574B8904D9DADE2037DD9BB0B68 }}
3232

3333
- name: 'Run Azure Functions Action'
3434
uses: Azure/functions-action@v1
@@ -37,4 +37,3 @@ jobs:
3737
app-name: 'githubapp'
3838
slot-name: 'Production'
3939
package: ${{ env.AZURE_FUNCTIONAPP_PACKAGE_PATH }}
40-

0 commit comments

Comments
 (0)