Repository navigation
Conversation
Collaborator
Author
|
/preview |
RGood
added a commit
that referenced
this pull request
Nov 11, 2026
…orize job) (#283) ## Problem The M05 live test (`/preview` on a PR) fails in the `authorize` job. Authorization passes, but posting the acknowledgement comment is rejected: > HttpError: Resource not accessible by integration (POST /repos//issues/282/comments) The response header shows the permissions the endpoint requires: **`x-accepted-github-permissions: issues=write; pull_requests=write`**. Commenting on a pull request needs both. After #247 the job had `issues: write` and `pull-requests: read`. Failing run: https://github.com/reddit/devvit-docs/actions/runs/43067039332 ## Fix Change the `authorize` job's `pull-requests` permission from `read` to `write` (one line). This job: - runs only code from the default branch (`ref: ${{ github.sha }}`, `persist-credentials: false`), - never checks out or executes PR code, - is gated on the commenter being OWNER/MEMBER/COLLABORATOR with write+ repository permission. The `preview` job, which does run PR code, is unchanged and keeps `contents: read` only. ## Testing `issue_comment` workflows run from the default branch, so this cannot be tested on the PR. After merge, comment `/preview` on a test PR (I have draft PR #282 ready) and confirm: acknowledgement comment appears, the `preview` job starts, and its token has only `Contents: read`. Part of M05 follow-up.
Collaborator
Author
|
/preview |
|
Preview requested for Open the preview run. When ready, the The preview stays available for up to six hours. Comment |
Collaborator
Author
|
unrelated comment (M05 test: should not replace the active preview) |
Collaborator
Author
|
M05 preview test complete; closing. Branch deleted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Temporary PR to verify the preview workflow after #247. Will be closed and the branch deleted after the test.