From 0838dffc81fc50781610dcc52122de902f94a231 Mon Sep 17 00:00:00 2001 From: Nulo Date: Sun, 22 Jan 2023 22:22:12 -0300 Subject: [PATCH] ALLOWED_REPOS => ALLOWED_USERS --- gitea-ci/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ",")