From bae80c59fef791e2ab7cd4f78e7ce821f4ad2639 Mon Sep 17 00:00:00 2001 From: Kumi Date: Sun, 18 Feb 2024 13:07:14 +0100 Subject: [PATCH] Switch auth token env var for pipeline compatibility Updated the environment variable for authentication to align with the pipeline's token-naming conventions, improving integration and consistency across our automated workflows. Error messaging reflects this change for clarity during troubleshooting. --- scripts/chores.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/chores.py b/scripts/chores.py index 865d476..91d91c2 100644 --- a/scripts/chores.py +++ b/scripts/chores.py @@ -10,9 +10,9 @@ from datetime import datetime, timedelta FORGEJO_URL = os.environ.get("FORGEJO_URL", "https://git.private.coffee") try: - TOKEN = os.environ["FORGEJO_TOKEN"] + TOKEN = os.environ["PIPELINES_TOKEN"] except KeyError: - logging.error("FORGEJO_TOKEN environment variable is required") + logging.error("PIPELINES_TOKEN environment variable is required") exit(1) ASSIGNEES = os.environ.get("CHORES_ASSIGNEES", "").split()