From d48407345d445592cf1467c098f45862422cfaf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=A2=81=E9=9C=87?= Date: Mon, 6 Apr 2026 12:00:33 +0800 Subject: [PATCH] fix: treat empty GITEA_TOKEN as unset for public source repos --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index e7a428d59..2018dfd02 100644 --- a/main.py +++ b/main.py @@ -118,7 +118,7 @@ def load_config(path: Path) -> Config: output = raw.get("output", {}) token_env = gitea.get("token_env", "GITEA_TOKEN") - token = os.getenv(token_env) if token_env else None + token = (os.getenv(token_env) or None) if token_env else None return Config( base_url=gitea["base_url"],