diff --git a/.github/workflows/firebase-hosting-merge.yml b/.github/workflows/firebase-hosting-merge.yml index cebde40..c8e352f 100644 --- a/.github/workflows/firebase-hosting-merge.yml +++ b/.github/workflows/firebase-hosting-merge.yml @@ -3,6 +3,10 @@ on: push: branches: - main + +permissions: + contents: read + jobs: build_and_deploy: runs-on: ubuntu-latest diff --git a/.github/workflows/firebase-hosting-pull-request.yml b/.github/workflows/firebase-hosting-pull-request.yml index 1c4b6e9..3cc3112 100644 --- a/.github/workflows/firebase-hosting-pull-request.yml +++ b/.github/workflows/firebase-hosting-pull-request.yml @@ -1,5 +1,10 @@ name: Deploy preview on pull request + on: pull_request + +permissions: + contents: read + jobs: build_and_preview: if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'