Remove workflow from default OAuth scopes

We now request it conditionally only for "HTTPS" login flow
This commit is contained in:
Mislav Marohnić 2021-02-04 17:40:09 +01:00
parent 5a110c8e42
commit 075b6f8aa6

View file

@ -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"