Skip to content
Discussion options

You must be logged in to vote

Hi! I understand the issue — the documentation here is a bit confusing and can feel misleading.

Fine-grained Personal Access Tokens (PATs) cannot be used to accept or decline repository invitations. Only GitHub App user access tokens (or a Classic PAT) are supported for this endpoint. The docs mix both token types, which makes it look like fine-grained PATs should work, but in reality they don’t.

Why your fine-grained PAT doesn’t work:

The permission “Private repository invitations” exists only in read-only mode for fine-grained PATs.

That’s why you can list invitations, but cannot accept/decline them.

The docs mention “Administration” permission (write), but that’s only available for Git…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by TomNaessens
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API and Webhooks Discussions related to GitHub's APIs or Webhooks Question Ask and answer questions about GitHub features and usage
2 participants