X Tutup
Skip to content

Commit ada5923

Browse files
committed
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.
1 parent 38ea595 commit ada5923

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/authflow/flow.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ func authFlow(oauthHost string, IO *iostreams.IOStreams, notice string, addition
6363
verboseStream = w
6464
}
6565

66-
minimumScopes := []string{"repo", "read:org", "gist"}
66+
minimumScopes := []string{"repo", "read:org", "gist", "workflow"}
6767
scopes := append(minimumScopes, additionalScopes...)
6868

6969
flow := &auth.OAuthFlow{

0 commit comments

Comments
 (0)
X Tutup