From 65f59e707b0db3cd0d1088200a23cd5c2102f2ec Mon Sep 17 00:00:00 2001 From: SandiyosDev <25407129+SandiyosDev@users.noreply.github.com> Date: Mon, 19 Oct 2026 19:41:52 -0500 Subject: [PATCH] token on altstore release fetch --- update_json.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/update_json.py b/update_json.py index 8a926a4f..9119abd6 100644 --- a/update_json.py +++ b/update_json.py @@ -19,6 +19,8 @@ def fetch_latest_release(repo_url): headers = { "Accept": "application/vnd.github+json", } + if os.environ.get("GITHUB_TOKEN"): + headers["Authorization"] = f"Bearer {os.environ['GITHUB_TOKEN']}" try: response = requests.get(api_url, headers=headers) response.raise_for_status()