Skip to content

GitHub App's user token can't list private repositories #48102

Answered by rarild
riywo asked this question in API and Webhooks
Discussion options

You must be logged in to vote

I finally found a solution! 😅 As mentioned here:

In order to view and access private repos, the Github App needs to be installed on the user's account.

I went into my Developer settings, clicked the Github app > Install App
After installing the app I would finally get the private repos in addition to the public ones in the response from /user/repos

Replies: 11 comments 8 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ninjadev64
Comment options

@Frajdi
Comment options

Answer selected by jricciardi
Comment options

You must be logged in to vote
3 replies
@ninjadev64
Comment options

@untamed-theory
Comment options

@motdotla
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@untamed-theory
Comment options

@nunesbeto
Comment options

Comment options

You must be logged in to vote
1 reply
@motdotla
Comment options

Comment options

You must be logged in to vote
0 replies
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 and conversations related to APIs or Webhooks Question inactive This discussion has been automatically marked as inactive. This was formerly labeled stale.