Skip to content

Commit b10755a

Browse files
authored
Added explicit permissions to all GitHub action workflows (jwngr#306)
1 parent 5526a7d commit b10755a

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Deploy prod frontend on merge
2+
23
on:
34
push:
45
branches:
56
- main
7+
8+
permissions:
9+
contents: read
10+
611
jobs:
712
build_and_deploy:
813
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
@@ -1,9 +1,12 @@
11
name: Deploy frontend preview on PR
2+
23
on: pull_request
4+
35
permissions:
46
checks: write
57
contents: read
68
pull-requests: write
9+
710
jobs:
811
build_and_preview:
912
if: ${{ github.event.pull_request.head.repo.full_name == github.repository }}

.github/workflows/frontend-ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Run Frontend CI on push
2+
23
on: [push]
4+
5+
permissions:
6+
contents: read
7+
38
jobs:
49
frontend-ci:
510
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)