diff --git a/.github/workflows/azure-webapps-dotnet-core.yml b/.github/workflows/azure-webapps-dotnet-core.yml index 653b469..d60faa4 100644 --- a/.github/workflows/azure-webapps-dotnet-core.yml +++ b/.github/workflows/azure-webapps-dotnet-core.yml @@ -15,6 +15,11 @@ on: branches: [ "main" ] workflow_dispatch: +permissions: + id-token: write + contents: read + attestations: write + jobs: build: runs-on: ubuntu-latest @@ -59,12 +64,17 @@ jobs: --artifact-type dir \ --name webapp + - name: Generate artifact attestation + uses: actions/attest-build-provenance@v1 + with: + subject-path: "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/WaveApp" + # Deploy to Azure Web apps - name: 'Run Azure webapp deploy action using Azure Credentials' uses: azure/webapps-deploy@v3 with: app-name: ${{ env.AZURE_WEBAPP_NAME }} - package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/myapp' + package: '${{ env.AZURE_WEBAPP_PACKAGE_PATH }}/WaveApp' - name: logout run: |