From d1c9df524a358bd27c133fcf1f38db83087ed040 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Sun, 26 Apr 2026 11:30:53 -0500 Subject: [PATCH] nixpkgs-plugin-update: avoid dummy GitHub auth --- .../src/nixpkgs_plugin_update/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/nixpkgs-plugin-update/nixpkgs-plugin-update/src/nixpkgs_plugin_update/__init__.py b/pkgs/development/python-modules/nixpkgs-plugin-update/nixpkgs-plugin-update/src/nixpkgs_plugin_update/__init__.py index 0625a3d5d959..831f7de6f654 100644 --- a/pkgs/development/python-modules/nixpkgs-plugin-update/nixpkgs-plugin-update/src/nixpkgs_plugin_update/__init__.py +++ b/pkgs/development/python-modules/nixpkgs-plugin-update/nixpkgs-plugin-update/src/nixpkgs_plugin_update/__init__.py @@ -89,7 +89,7 @@ class FetchConfig: def make_request(url: str, token=None) -> urllib.request.Request: headers = {} - if token is not None: + if token: headers["Authorization"] = f"token {token}" return urllib.request.Request(url, headers=headers) @@ -140,7 +140,7 @@ class Repo: self._branch = branch # Redirect is the new Repo to use self.redirect: "Repo | None" = None - self.token: str | None = "dummy_token" + self.token: str | None = None @property def name(self):