From d353359c781137126233dc75a8bb9f65b01a7c8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sun, 9 Aug 2026 10:08:44 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20Sponsors=20Git=20authentic?= =?UTF-8?q?ation=20(#16174)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/sponsors.yml | 2 +- scripts/sponsors.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sponsors.yml b/.github/workflows/sponsors.yml index 13aab26903..c8e87e5dfd 100644 --- a/.github/workflows/sponsors.yml +++ b/.github/workflows/sponsors.yml @@ -59,4 +59,4 @@ jobs: uv run ./scripts/sponsors.py env: SPONSORS_TOKEN: ${{ secrets.SPONSORS_TOKEN }} # zizmor: ignore[secrets-outside-env] - PR_TOKEN: ${{ steps.pr-submit.outputs.token }} + GITHUB_TOKEN: ${{ steps.pr-submit.outputs.token }} diff --git a/scripts/sponsors.py b/scripts/sponsors.py index d6b079b99b..aaa8898eff 100644 --- a/scripts/sponsors.py +++ b/scripts/sponsors.py @@ -84,7 +84,7 @@ class SponsorsResponse(BaseModel): class Settings(BaseSettings): sponsors_token: SecretStr - pr_token: SecretStr + github_token: SecretStr github_repository: str httpx_timeout: int = 30 @@ -160,7 +160,7 @@ def main() -> None: logging.basicConfig(level=logging.INFO) settings = Settings() logging.info(f"Using config: {settings.model_dump_json()}") - g = Github(settings.pr_token.get_secret_value()) + g = Github(settings.github_token.get_secret_value()) repo = g.get_repo(settings.github_repository) tiers = get_individual_sponsors(settings=settings)