@ -1,5 +1,5 @@
name: Azure Static Web Apps CI/CD
on:
push:
branches:
@ -11,10 +11,14 @@ on:
jobs:
build_and_deploy_job:
permissions:
actions: write
checks: none
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
actions: read
checks: write
contents: read
deployments: read
pull-requests: write
security-events: write
runs-on: ubuntu-latest
name: Build and Deploy Job
steps: