fix(ci): use PAT_TOKEN_2 for gh pr create

github.token cannot open PRs when "Allow GitHub Actions to create and
approve pull requests" is disabled in repo settings. PAT_TOKEN_2
bypasses that restriction. Checkout still uses github.token.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Julio Quinteros Pro 2026-02-19 20:13:05 -03:00
parent 08b5907c9c
commit ac25c9b555

View file

@ -73,4 +73,7 @@ jobs:
--head "$BRANCH" \
--base main
env:
GH_TOKEN: ${{ github.token }}
# github.token cannot create PRs when "Allow GitHub Actions to create
# and approve pull requests" is disabled in repo settings.
# PAT_TOKEN_2 bypasses that restriction.
GH_TOKEN: ${{ secrets.PAT_TOKEN_2 }}