mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-30 05:41:12 +00:00
Fix cli args typo
This was preventing from using --github-secret while env var worked.
This commit is contained in:
parent
b675867967
commit
c6b9466370
2 changed files with 4 additions and 4 deletions
|
@ -110,7 +110,7 @@ var serverCmd = cli.Command{
|
|||
},
|
||||
cli.StringFlag{
|
||||
EnvVar: "DRONE_GITHUB_SECRET",
|
||||
Name: "github-sercret",
|
||||
Name: "github-secret",
|
||||
Usage: "github oauth2 client secret",
|
||||
},
|
||||
cli.StringSliceFlag{
|
||||
|
@ -203,7 +203,7 @@ var serverCmd = cli.Command{
|
|||
},
|
||||
cli.StringFlag{
|
||||
EnvVar: "DRONE_GITLAB_SECRET",
|
||||
Name: "gitlab-sercret",
|
||||
Name: "gitlab-secret",
|
||||
Usage: "gitlab oauth2 client secret",
|
||||
},
|
||||
cli.StringFlag{
|
||||
|
|
|
@ -80,7 +80,7 @@ func setupGitlab(c *cli.Context) (remote.Remote, error) {
|
|||
return gitlab.New(gitlab.Opts{
|
||||
URL: c.String("gitlab-server"),
|
||||
Client: c.String("gitlab-client"),
|
||||
Secret: c.String("gitlab-sercret"),
|
||||
Secret: c.String("gitlab-secret"),
|
||||
Username: c.String("gitlab-git-username"),
|
||||
Password: c.String("gitlab-git-password"),
|
||||
PrivateMode: c.Bool("gitlab-private-mode"),
|
||||
|
@ -94,7 +94,7 @@ func setupGithub(c *cli.Context) (remote.Remote, error) {
|
|||
URL: c.String("github-server"),
|
||||
Context: c.String("github-context"),
|
||||
Client: c.String("github-client"),
|
||||
Secret: c.String("github-sercret"),
|
||||
Secret: c.String("github-secret"),
|
||||
Scopes: c.StringSlice("github-scope"),
|
||||
Username: c.String("github-git-username"),
|
||||
Password: c.String("github-git-password"),
|
||||
|
|
Loading…
Reference in a new issue