implement suggestion

This commit is contained in:
Carlo Sala 2026-01-05 11:58:34 +01:00
commit 47842ee5ea
No known key found for this signature in database
GPG key ID: DA6FB450C1A4FE9A

View file

@ -19,11 +19,12 @@ DEPS_YAML_FILE = ".github/dependencies.yml"
# Dry run flag # Dry run flag
DRY_RUN = os.environ.get("DRY_RUN", "0") == "1" DRY_RUN = os.environ.get("DRY_RUN", "0") == "1"
# GitHub Token is needed to avoid rate limiting # GitHub Token is needed to avoid rate limiting
GH_TOKEN = os.environ.get("GH_TOKEN", "") GH_TOKEN = os.environ.get("GH_TOKEN")
HEADERS = { HEADERS = {
"Authorization": f"Bearer {GH_TOKEN}",
"Accept": "application/vnd.github+json", "Accept": "application/vnd.github+json",
} }
if GH_TOKEN:
HEADERS["Authorization"] = f"Bearer {GH_TOKEN}"
# utils for tag comparison # utils for tag comparison
BASEVERSION = re.compile( BASEVERSION = re.compile(