Skip to content

GitHub App permissions for GraphQL query #24797

Answered by shipit
shipit asked this question in API and Webhooks
Discussion options

You must be logged in to vote

The reason this query doesn’t work is that the /repos endpoint returns public repos for the GitHub App’s token and the nested query eg /languages breaks the graphql query. The solution is to fetch /user/:install_id/repos/ and then iterate over returned queries. 

imho- public repos shouldn’t be returned for GitHub App in the first place as the app could be installed on a public repo in future.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
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
None yet
2 participants