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