Skip to content

Commit caae123

Browse files
authored
Merge pull request #3663 from jspsych/fix/preview-publish-pr-comment-permission
ci(preview): grant pull-requests:write so PR comment posts
2 parents 4b9dc94 + 26ffaa8 commit caae123

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/preview-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ on:
1111
# branch and edit the PR comment.
1212
permissions:
1313
contents: write
14-
pull-requests: read
14+
# `pull-requests: write` is required (despite PR comments using the issues
15+
# API endpoint) because GitHub Actions enforces PR-targeted writes against
16+
# the `pull-requests` scope. Without this, peter-evans/create-or-update-comment
17+
# silently no-ops on PRs.
18+
pull-requests: write
1519
issues: write
1620
actions: read
1721

0 commit comments

Comments
 (0)