Skip to content

ci/backport: fix slash command permission check and update github-script#21

Merged
devreal merged 1 commit intomainfrom
fix-backport-perms
Apr 17, 2026
Merged

ci/backport: fix slash command permission check and update github-script#21
devreal merged 1 commit intomainfrom
fix-backport-perms

Conversation

@devreal
Copy link
Copy Markdown
Owner

@devreal devreal commented Apr 17, 2026

getCollaboratorPermissionLevel requires org-level "Members" read permission, which GITHUB_TOKEN cannot provide for organization repos, causing "Resource not accessible by integration" on every invocation. Replace with a check on author_association (OWNER/MEMBER/COLLABORATOR), which is available directly in the webhook payload.

Also upgrade all actions/github-script@v7 to @v8 (Node.js 20 is deprecated and will be removed 2026-09-16).

getCollaboratorPermissionLevel requires org-level "Members" read
permission, which GITHUB_TOKEN cannot provide for organization repos,
causing "Resource not accessible by integration" on every invocation.
Replace with a check on author_association (OWNER/MEMBER/COLLABORATOR),
which is available directly in the webhook payload.

Also upgrade all actions/github-script@v7 to @v8 (Node.js 20 is
deprecated and will be removed 2026-09-16).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: Joseph Schuchart <joseph.schuchart@stonybrook.edu>
@devreal devreal merged commit de838e2 into main Apr 17, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant