From 12e9d639df4e74eaf2f6964abdde13de7338fe5a Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sun, 2 Jun 2024 16:30:29 +0200 Subject: [PATCH] Fix Gitea backend not authenticating properly with Gitea Signed-off-by: magic_rb --- buildbot_nix/gitea_projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildbot_nix/gitea_projects.py b/buildbot_nix/gitea_projects.py index 03bae40..cdcbfa5 100644 --- a/buildbot_nix/gitea_projects.py +++ b/buildbot_nix/gitea_projects.py @@ -289,7 +289,7 @@ def refresh_projects(config: GiteaConfig, repo_cache_file: Path) -> None: # Gitea doesn't include topics in the default repo listing, unlike GitHub topics: list[str] = http_request( f"{config.instance_url}/api/v1/repos/{repo['owner']['login']}/{repo['name']}/topics", - headers={"Authorization": f"token {config.token}"}, + headers={"Authorization": f"token {config.token()}"}, ).json()["topics"] repo["topics"] = topics repos.append(repo)