From 70c9b13a9a448f38983ab6a95e2b863163a11a97 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sat, 4 Nov 2017 18:31:08 +0100 Subject: [PATCH] Use read-only github scope --- backend/api/github/github.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/github/github.go b/backend/api/github/github.go index a4aaf4f..8715848 100644 --- a/backend/api/github/github.go +++ b/backend/api/github/github.go @@ -29,7 +29,7 @@ const ( func RedirectToLogin(w http.ResponseWriter, r *http.Request) { urlStr := authorizeURL + "?" + url.Values{ "client_id": {config.Get().Github.ClientID}, - "scope": {"user"}, + "scope": {"read:user"}, }.Encode() http.Redirect(w, r, urlStr, http.StatusTemporaryRedirect) }