GitHub App gets 403 when commenting on one external public repository but not another #214135
Replies: 1 comment
|
Yes — this comes down to whether the GitHub App is installed on the target repository. Unlike personal OAuth tokens (like To verify which one differs between the two repos:
To comment on an external public repo where the owner hasn't installed your GitHub App, you need either an OAuth App token ( |
Uh oh!
There was an error while loading. Please reload this page.
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Apps
Body
I'm using a GitHub App that can create issues and comments in one external public repository, but commenting on an issue in another external public repository returns
403: Resource not accessible by integration. Both repositories are public, and the issues are open and unlocked. My reported repository permissions are identical. The app has Issues write permission and access to my own repositories. Commenting via my personal GitHub CLI OAuth authentication works in the affected repository. What determines whether a GitHub App can comment on issues in external public repositories? Does this depend on the app being installed by the target repository owner, or on the use of a user access token versus an installation access token? How can I diagnose the difference? Thanks!All reactions