IssueRaiser

Read-Only OAuth Scope on GitHub, Please?

We love @GitHub. Our processes all revolve around GitHub. Naturally by extension, we love the GitHub API, because it allows us to do creative things with GitHub. So far, we have built a few apps that rely heavily on GitHub's API: - [deppbot](https://www.deppbot.com) - A service that does automated dependency updates for Ruby apps, issued as Pull Requests - [Dasherize](http://dasherize.com) - A simple dashboard for CI and GitHub stats - [GitHub Gem Stats](http://gigest.herokuapp.com/) - A toy app for "Which RubyGems does X use?" and "Which GitHub repo uses Y gem?" Let's talk about permissions next. For both deppbot and Dasherize, we require access to both public and private repos. Looking at [GitHub's OAuth scopes](https://developer.github.com/v3/oauth/#scopes), we'll need to use the `repo` scope. ![screen shot 2015-10-16 at 12 21 19 pm](https://cloud.githubusercontent.com/assets/2112/10562952/77c622e6-75a7-11e5-8576-b6702b61b163.png) Hmm.. But wait a minute.. The `repo` scope grants `read` AND `write` access to basically everything! Getting `read` access is probably a must for all apps, but do we need `write` on everything? Due to the nature of deppbot, we'll need `write` permission on public and private repos, so that it can issue Pull Requests when it finishes the dependency update for a project and perform other actions. However, all Dasherize does is `read` from public or private repos, and it's not doing any `write` at all. You can even take a look at

Posted by winston on Oct 18, 2015, 7:19 AM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.5,000 issues0 comments

github (SaaS)

Read-Only OAuth Scope on GitHub, Please?

winstonOct 18, 2015, 7:19 AM

We love @GitHub. Our processes all revolve around GitHub. Naturally by extension, we love the GitHub API, because it allows us to do creative things with GitHub. So far, we have built a few apps that rely heavily on GitHub's API: - [deppbot](https://www.deppbot.com) - A service that does automated dependency updates for Ruby apps, issued as Pull Requests - [Dasherize](http://dasherize.com) - A simple dashboard for CI and GitHub stats - [GitHub Gem Stats](http://gigest.herokuapp.com/) - A toy app for "Which RubyGems does X use?" and "Which GitHub repo uses Y gem?" Let's talk about permissions next. For both deppbot and Dasherize, we require access to both public and private repos. Looking at [GitHub's OAuth scopes](https://developer.github.com/v3/oauth/#scopes), we'll need to use the `repo` scope. ![screen shot 2015-10-16 at 12 21 19 pm](https://cloud.githubusercontent.com/assets/2112/10562952/77c622e6-75a7-11e5-8576-b6702b61b163.png) Hmm.. But wait a minute.. The `repo` scope grants `read` AND `write` access to basically everything! Getting `read` access is probably a must for all apps, but do we need `write` on everything? Due to the nature of deppbot, we'll need `write` permission on public and private repos, so that it can issue Pull Requests when it finishes the dependency update for a project and perform other actions. However, all Dasherize does is `read` from public or private repos, and it's not doing any `write` at all. You can even take a look at

Comments (0)

No comments yet. Start the discussion.

Comment on this issue