diff --git a/gitea-ci/main.go b/gitea-ci/main.go index dad3553..1635670 100644 --- a/gitea-ci/main.go +++ b/gitea-ci/main.go @@ -41,8 +41,8 @@ type config struct { func parseConfig() (c config) { var allowedUsersStr string - if allowedUsersStr = os.Getenv("ALLOWED_REPOS"); len(allowedUsersStr) == 0 { - log.Fatal("ALLOWED_REPOS is nil") + if allowedUsersStr = os.Getenv("ALLOWED_USERS"); len(allowedUsersStr) == 0 { + log.Fatal("ALLOWED_USERS is nil") } c.allowedUsers = strings.Split(allowedUsersStr, ",")