Skip to content

Commit d7d838f

Browse files
committed
Add permissions
1 parent 2348dc6 commit d7d838f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/preview.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
- synchronize
99
- closed
1010

11+
# Add permissions to allow the action to create deployments
12+
permissions:
13+
pull-requests: write
14+
contents: read
15+
1116
concurrency: preview-${{ github.ref }}
1217

1318
jobs:
@@ -20,4 +25,5 @@ jobs:
2025
- name: Deploy preview
2126
uses: rossjrw/pr-preview-action@v1
2227
with:
23-
source-dir: ./
28+
source-dir: ./
29+
token: ${{ env.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)