Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace the API will return an error message that states the scopes or permissions your token needs #32105

Closed
1 task done
jsoref opened this issue Mar 15, 2024 · 2 comments
Closed
1 task done
Labels
content This issue or pull request belongs to the Docs Content team graphql Content related to GraphQL rest Content related to rest - overview. waiting for review Issue/PR is waiting for a writer's review

Comments

@jsoref
Copy link
Contributor

jsoref commented Mar 15, 2024

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/graphql/guides/forming-calls-with-graphql#authenticating-with-a-personal-access-token

What part(s) of the article would you like to see updated?

If your token does not have the required scopes or permissions to access a resource, the API will return an error message that states the scopes or permissions your token needs.

Additional information

https://github.com/orgs/community/discussions/67181#discussion-5630868

When I try to run gh pr checks --watch and gh pr merge --merge --auto in a step using run:, I get the following error:

GraphQL: Resource not accessible by integration (node.statusCheckRollup.nodes.0.commit.statusCheckRollup.contexts.nodes.0.checkSuite.workflowRun)
Error: Process completed with exit code 1.

This clearly violates the documentation's assertion that the api will tell users what they need.

If you need to provide an extra flags to gh, then the documentation should provide them.

@jsoref jsoref added the content This issue or pull request belongs to the Docs Content team label Mar 15, 2024
@github-actions github-actions bot added the triage Do not begin working on this issue until triaged by the team label Mar 15, 2024
@nguyenalex836 nguyenalex836 added waiting for review Issue/PR is waiting for a writer's review rest Content related to rest - overview. and removed triage Do not begin working on this issue until triaged by the team labels Mar 15, 2024
@nguyenalex836
Copy link
Contributor

@jsoref Thanks for opening this issue! I'll get this triaged for review ✨

@nguyenalex836 nguyenalex836 added the graphql Content related to GraphQL label Mar 15, 2024
@skedwards88
Copy link
Contributor

Thanks for this issue. I think that it would be better addressed by opening an issue in https://github.com/cli/cli/issues, so I am going to close the docs issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
content This issue or pull request belongs to the Docs Content team graphql Content related to GraphQL rest Content related to rest - overview. waiting for review Issue/PR is waiting for a writer's review
Projects
None yet
Development

No branches or pull requests

3 participants