Per the GitHub API docs, I am requesting the repo scope which gives access to private repositories.
The user is presented with the following dialog, which also mentions private repos. They accept the application.
Despite this, when using the oauth access token obtained when asking for 'repo' access, I can only see public repos when I GET https://api.github.com/users/someusername/repos. No private repos are shown.
The user account is my own, and I have not revoked access.
How can I see private repos using the GitHub API V3?
From testing:
GETing /users/someusername/repos doesn't show private repos (even if it's the user whose oauth access token you're using).
GETing /user/repos show private repos.
This isn't documented in the GitHub API docs at present, I just found out via testing.
Thanks to @ivanzuzak for suggesting to look at the endpoint.
2.1m questions
2.1m answers
60 comments
57.0k users