Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github api token scope to list issues of a private repo?

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"
like image 643
Árpád Magosányi Avatar asked Mar 29 '19 15:03

Árpád Magosányi


Video Answer


1 Answers

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.

like image 56
Brendan Forster Avatar answered Oct 16 '22 19:10

Brendan Forster