I want to list all issues of a private repo. I have created an api key. Without any scope I cannot see the issues. If I add "repo" scope, I see them, but that scope can read/write the whole repo. Which is the strictest scope I can use to read issues?
For reference, here is how I am testing it:
curl -H "Authorization: token the_token" "https://api.github.com/repos/organization/repo/issues?state=all&per_page=100"
To grant a personal access token access to any data with a private repository (code, issues, projects) you'll need to set the repo
scope.
Unfortunately there's no granularity for issues beyond the repo
scope.