Skip to content

Commit 5f8090e

Browse files
Limit workflow permissions (#693)
1 parent 5f05ec9 commit 5f8090e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ on:
33
pull_request_target:
44
types: [labeled]
55

6+
permissions:
7+
checks: write #This is required by FirebaseExtended/action-hosting-deploy@v0
8+
contents: read #This is required for private repositories for the actions/checkout@v4 action
9+
pull-requests: write #This is required by FirebaseExtended/action-hosting-deploy@v0
10+
611
jobs:
712
build:
813
name: Build and preview site
@@ -14,6 +19,7 @@ jobs:
1419
with:
1520
ref: ${{ github.event.pull_request.head.sha }}
1621
fetch-depth: 0
22+
persist-credentials: false # This will not store the git credentials on disk, only in memory
1723

1824
- name: Set up Python
1925
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)