From abdff1d9270527ac3587325ae4ea42b61f15a9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 6 Nov 2023 07:46:24 +0100 Subject: [PATCH] also pass GITHUB_TOKEN to AvatarGithub --- buildbot_nix/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/buildbot_nix/__init__.py b/buildbot_nix/__init__.py index cbca7cb..3d706f6 100644 --- a/buildbot_nix/__init__.py +++ b/buildbot_nix/__init__.py @@ -809,7 +809,9 @@ class NixConfigurator(ConfiguratorBase): if not config["www"].get("auth"): config["www"]["avatar_methods"] = config["www"].get("avatar_methods", []) - config["www"]["avatar_methods"].append(util.AvatarGitHub()) + config["www"]["avatar_methods"].append( + util.AvatarGitHub(self.github.token()) + ) config["www"]["auth"] = util.GitHubAuth( self.github.oauth_id, read_secret_file(self.github.oauth_secret_name) )