Switch auth token env var for pipeline
Some checks failed
/ chores (push) Failing after 15s

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.
This commit is contained in:
Kumi 2024-02-18 13:07:14 +01:00
parent e39eca5352
commit bae80c59fe
Signed by: kumi
GPG key ID: ECBCC9082395383F

View file

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