fix: treat empty GITEA_TOKEN as unset for public source repos
This commit is contained in:
@@ -118,7 +118,7 @@ def load_config(path: Path) -> Config:
|
|||||||
output = raw.get("output", {})
|
output = raw.get("output", {})
|
||||||
|
|
||||||
token_env = gitea.get("token_env", "GITEA_TOKEN")
|
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(
|
return Config(
|
||||||
base_url=gitea["base_url"],
|
base_url=gitea["base_url"],
|
||||||
|
|||||||
Reference in New Issue
Block a user