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.
This commit is contained in:
parent
38ea595ce2
commit
ada59236c6
1 changed files with 1 additions and 1 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue