Skip to content

Commit 24fe04b

Browse files
updated permissions for preview (#123)
## 💸 TL;DR <!-- What's the three sentence summary of purpose of the PR --> Changed workflow permission from pull-requests: read to pull-requests: write. Added continue-on-error: true to React to preview request. Reason: the rocket reaction is just a nice confirmation, so it should not block the preview build if GitHub rejects that API call with a 403. ## ✅ Checks <!-- Make sure your pr passes the CI checks and do check the following fields as needed - --> - [ ] CI tests (if present) are passing - [ ] Adheres to code style for repo - [ ] Contributor License Agreement (CLA) completed if not a Reddit employee
1 parent 3d08ab0 commit 24fe04b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/preview.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
permissions:
99
contents: read
1010
issues: write
11-
pull-requests: read
11+
pull-requests: write
1212

1313
concurrency:
1414
group: preview-pr-${{ github.event.issue.number }}
@@ -47,6 +47,7 @@ jobs:
4747
4848
- name: React to preview request
4949
uses: actions/github-script@v7
50+
continue-on-error: true
5051
with:
5152
script: |
5253
await github.rest.reactions.createForIssueComment({

0 commit comments

Comments
 (0)