Skip to content

Commit f068ac8

Browse files
committed
ci: add permissions to GitHub workflows
1 parent fcd2d43 commit f068ac8

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/firebase-hosting-merge.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ name: Deploy to Firebase Hosting on merge
66
push:
77
branches:
88
- main
9+
permissions:
10+
contents: read
11+
checks: write
912
jobs:
1013
build_and_deploy:
1114
runs-on: ubuntu-latest

.github/workflows/firebase-hosting-pull-request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33

44
name: Deploy to Firebase Hosting on PR
55
'on': pull_request
6+
permissions:
7+
contents: read
8+
checks: write
69
jobs:
710
build_and_preview:
811
if: '${{ github.event.pull_request.head.repo.full_name == github.repository }}'

0 commit comments

Comments
 (0)