GeezerVison is showing github.com — GraphQL API content does not appear to explain required permissions · Issue #8925 · github/docs
GraphQL API content does not appear to explain required permissions #8925
Labels
contentThis issue or pull request belongs to the Docs Content team Activity
hubwriter commented on Oct 4, 2021
@jsoref - Thank you for raising this issue.
I've had a look at this and I think the problem here lies not with the authentication information on the page you refer to (https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql) but with the problem using the GITHUB_TOKEN to update a PR's status (as described in this discussion: community/community#5082).
The GraphQL documentation page says that the scopes your token requires "depends on the type of data you're trying to request". Although this is vague, I think it's enough to allow people to choose the appropriate scopes when they create a token because the scopes are quite clearly described in the user interface for creating a token.
In referring to the "Permissions required for GitHub Apps" article in the REST API documentation, as an example of what we might do for GraphQL, I don't believe you're comparing like with like - although I do understand the point you are making.
I will raise Discussion 5082 with our Actions team.
Thanks again for raising this issue.
lee-dohm commented on Oct 4, 2021
Thanks for the feedback. Given that we've raised this internally, we're going to close this issue. Please note, we can't promise when or even if this will be addressed but we have brought it to the attention of the proper team.
Thanks again!
evpaassen commented on Nov 16, 2021
I've had a look at this and I think the problem here lies not with the authentication information on the page you refer to (docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-graphql) but with the problem using the GITHUB_TOKEN to update a PR's status (as described in this discussion: github/feedback#5082).
And how about authentication as a GitHub App (installation)? I've enabled and approved virtually all permissions for my app, but I'm still getting the Resource not accessible by integration error message when I try to use the convertPullRequestToDraft mutation. Is this mutation really only accessible using PATs then?
I'm sorry for commenting on this issue while it's closed, but it's one of the rare pieces of 'documentation' about the permissions required by this GraphQL mutation and others might eventually stumble upon this issue too.
evpaassen commented on Nov 16, 2021
GitHub support just confirmed:
This feature is currently not available to server-to-server tokens. We have an internal issue tracking this as a feature request and I'd be happy to add this report to the list.
Reacted by Josh Soref, Robert Egglestone, Vyacheslav Karbovnichy, Nathan Morris and Ved
Reacted by Janice, Ramya Parimi and Nathan Morris
Metadata
Metadata
contentThis issue or pull request belongs to the Docs Content team Development
No branches or pull requestsIssue actions