GitHub App permissions for GraphQL query #24797
-
I had this query working on my OAuth app with
Permissions on the GitHub app-
Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
From here looks like |
Beta Was this translation helpful? Give feedback.
-
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 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. |
Beta Was this translation helpful? Give feedback.
-
How can I do the query you mention in Github API v4? |
Beta Was this translation helpful? Give feedback.
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.