also pass GITHUB_TOKEN to AvatarGithub

This commit is contained in:
Jörg Thalheim 2023-11-06 07:46:24 +01:00
parent f7573d02bc
commit abdff1d927

View file

@ -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)
)