From 9af25df9f0ea35db9cac4aef76149fa9fd93c9f5 Mon Sep 17 00:00:00 2001 From: Muhammad Faraz Maqsood Date: Mon, 5 Oct 2026 15:16:16 +0500 Subject: [PATCH] fix: use the requirements bot token to open the OpenAPI schema PR --- .github/workflows/generate_openapi_schemas.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/generate_openapi_schemas.yml b/.github/workflows/generate_openapi_schemas.yml index 682496b6a7a4..772d80afad90 100644 --- a/.github/workflows/generate_openapi_schemas.yml +++ b/.github/workflows/generate_openapi_schemas.yml @@ -134,6 +134,13 @@ jobs: - name: Open pull request if schemas changed uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8 with: + # The default GITHUB_TOKEN is scoped to this repository and cannot + # resolve org teams, so requesting team-reviewers with it fails this + # step after the PR is already open; PRs it opens also start no CI. + # upgrade-python-requirements.yml uses the requirements bot token for + # the same reason. Forks have no such secret and fall back to the + # default token. + token: ${{ secrets.REQUIREMENTS_BOT_GITHUB_TOKEN || github.token }} branch: chore/update-openapi-schemas # Without a suffix, a run that happens while the previous PR is # still open pushes onto that same branch. Matches