From 8c565bbf1599acb8a3b5da05a7d03f1738727f89 Mon Sep 17 00:00:00 2001 From: jLynx Date: Thu, 27 Jul 2023 14:53:56 +1200 Subject: [PATCH] Allow changelog to run without a token (#1312) * Allow code to run without a token * Reverted submodule change by mistake --- .github/workflows/changelog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/changelog.py b/.github/workflows/changelog.py index abae7a176..8b43e3375 100644 --- a/.github/workflows/changelog.py +++ b/.github/workflows/changelog.py @@ -29,7 +29,7 @@ def print_nightly_changelog(): def handle_get_request(path, offset=None): - headers = {"Authorization": f"Bearer {token}"} + headers = {} if token == None else {"Authorization": f"Bearer {token}"} params = {"since": offset} url_base = f"https://api.github.com/repos/{repo_owner}/{repo_name}/" response = requests.get(url_base + path, headers=headers, params=params)