From 075b6f8aa6841bc66a85fad25f5fac5cc7129f76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 4 Feb 2021 17:40:09 +0100 Subject: [PATCH] Remove `workflow` from default OAuth scopes We now request it conditionally only for "HTTPS" login flow --- internal/authflow/flow.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/authflow/flow.go b/internal/authflow/flow.go index f7d09fce5..41e06bc21 100644 --- a/internal/authflow/flow.go +++ b/internal/authflow/flow.go @@ -69,7 +69,7 @@ func authFlow(oauthHost string, IO *iostreams.IOStreams, notice string, addition httpClient.Transport = api.VerboseLog(IO.ErrOut, logTraffic, IO.ColorEnabled())(httpClient.Transport) } - minimumScopes := []string{"repo", "read:org", "gist", "workflow"} + minimumScopes := []string{"repo", "read:org", "gist"} scopes := append(minimumScopes, additionalScopes...) callbackURI := "http://127.0.0.1/callback"