From 47842ee5ea233b3b3b24ce4c1d3ae7b857bfb5d4 Mon Sep 17 00:00:00 2001 From: Carlo Sala Date: Mon, 5 Jan 2026 11:58:34 +0100 Subject: [PATCH] implement suggestion --- .github/workflows/dependencies/updater.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dependencies/updater.py b/.github/workflows/dependencies/updater.py index bfdce4205..b61e5858a 100644 --- a/.github/workflows/dependencies/updater.py +++ b/.github/workflows/dependencies/updater.py @@ -19,11 +19,12 @@ DEPS_YAML_FILE = ".github/dependencies.yml" # Dry run flag DRY_RUN = os.environ.get("DRY_RUN", "0") == "1" # GitHub Token is needed to avoid rate limiting -GH_TOKEN = os.environ.get("GH_TOKEN", "") +GH_TOKEN = os.environ.get("GH_TOKEN") HEADERS = { - "Authorization": f"Bearer {GH_TOKEN}", "Accept": "application/vnd.github+json", } +if GH_TOKEN: + HEADERS["Authorization"] = f"Bearer {GH_TOKEN}" # utils for tag comparison BASEVERSION = re.compile(