diff --git a/drone/server.go b/drone/server.go index a1b9fb06f..f94c6afaf 100644 --- a/drone/server.go +++ b/drone/server.go @@ -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{ diff --git a/router/middleware/remote.go b/router/middleware/remote.go index b0afc66ed..7d0d56f79 100644 --- a/router/middleware/remote.go +++ b/router/middleware/remote.go @@ -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"),