{"action":"created","issue":{"url":"https://api.github.com/repos/appscode/guard/issues/195","repository_url":"https://api.github.com/repos/appscode/guard","labels_url":"https://api.github.com/repos/appscode/guard/issues/195/labels{/name}","comments_url":"https://api.github.com/repos/appscode/guard/issues/195/comments","events_url":"https://api.github.com/repos/appscode/guard/issues/195/events","html_url":"https://github.com/appscode/guard/issues/195","id":380652168,"node_id":"MDU6SXNzdWUzODA2NTIxNjg=","number":195,"title":"Github connector docs asks for unnecessary public_repo permissions","user":{"login":"tmatias","id":3996251,"node_id":"MDQ6VXNlcjM5OTYyNTE=","avatar_url":"https://avatars2.githubusercontent.com/u/3996251?v=4","gravatar_id":"","url":"https://api.github.com/users/tmatias","html_url":"https://github.com/tmatias","followers_url":"https://api.github.com/users/tmatias/followers","following_url":"https://api.github.com/users/tmatias/following{/other_user}","gists_url":"https://api.github.com/users/tmatias/gists{/gist_id}","starred_url":"https://api.github.com/users/tmatias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tmatias/subscriptions","organizations_url":"https://api.github.com/users/tmatias/orgs","repos_url":"https://api.github.com/users/tmatias/repos","events_url":"https://api.github.com/users/tmatias/events{/privacy}","received_events_url":"https://api.github.com/users/tmatias/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-14T11:19:17Z","updated_at":"2018-12-03T21:56:47Z","closed_at":"2018-12-03T19:41:49Z","author_association":"CONTRIBUTOR","body":"The [documentation on the Github connector](https://appscode.com/products/guard/0.2.1/guides/authenticator/github/#issue-token) says\r\n\r\n> To use Github authentication, you can use your personal access token with permissions to read public_repo and read:org\r\n\r\nLooking at [the connector's source](https://github.com/appscode/guard/blob/master/auth/providers/github/github.go), though, it doesn't seem to use it. \r\n\r\n`public_repo`, despite its name, grants a [somewhat broad set of permissions](https://github.com/dear-github/dear-github/issues/113#issue-132907872), so it would be nice not to require it.\r\n\r\nI tried guard with a `read:org` only token as well, and couldn't see any problems either."},"comment":{"url":"https://api.github.com/repos/appscode/guard/issues/comments/443885487","html_url":"https://github.com/appscode/guard/issues/195#issuecomment-443885487","issue_url":"https://api.github.com/repos/appscode/guard/issues/195","id":443885487,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0Mzg4NTQ4Nw==","user":{"login":"tamalsaha","id":94814,"node_id":"MDQ6VXNlcjk0ODE0","avatar_url":"https://avatars1.githubusercontent.com/u/94814?v=4","gravatar_id":"","url":"https://api.github.com/users/tamalsaha","html_url":"https://github.com/tamalsaha","followers_url":"https://api.github.com/users/tamalsaha/followers","following_url":"https://api.github.com/users/tamalsaha/following{/other_user}","gists_url":"https://api.github.com/users/tamalsaha/gists{/gist_id}","starred_url":"https://api.github.com/users/tamalsaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamalsaha/subscriptions","organizations_url":"https://api.github.com/users/tamalsaha/orgs","repos_url":"https://api.github.com/users/tamalsaha/repos","events_url":"https://api.github.com/users/tamalsaha/events{/privacy}","received_events_url":"https://api.github.com/users/tamalsaha/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T21:56:47Z","updated_at":"2018-12-03T21:56:47Z","author_association":"MEMBER","body":"Fixed in https://github.com/appscode/guard/releases/tag/0.3.0"}}
{"actor":{"display_login":"tamalsaha"}}