From ada59236c6b18feba6f3bffb0d18edfa6beeeb01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Mon, 7 Dec 2020 20:12:58 +0100 Subject: [PATCH] Add `workflow` to the list of default OAuth scopes we request Since GitHub CLI now offers to authenticate your Git as well, the token we request here will be used for git pushes. Since we do anticipate our users making edits to their GitHub Actions workflow files, we want them to be able to push their changes, and this scope allows that. --- 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 896895d21..65c17fd0b 100644 --- a/internal/authflow/flow.go +++ b/internal/authflow/flow.go @@ -63,7 +63,7 @@ func authFlow(oauthHost string, IO *iostreams.IOStreams, notice string, addition verboseStream = w } - minimumScopes := []string{"repo", "read:org", "gist"} + minimumScopes := []string{"repo", "read:org", "gist", "workflow"} scopes := append(minimumScopes, additionalScopes...) flow := &auth.OAuthFlow{