From 9c70cd615aee33fd952941094605c12e31e9b271 Mon Sep 17 00:00:00 2001 From: Julio Quinteros Pro Date: Thu, 19 Feb 2026 20:13:58 -0300 Subject: [PATCH] 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. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/regenerate-poetry-lock.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/regenerate-poetry-lock.yml b/.github/workflows/regenerate-poetry-lock.yml index c1d62a4060..b51762ef70 100644 --- a/.github/workflows/regenerate-poetry-lock.yml +++ b/.github/workflows/regenerate-poetry-lock.yml @@ -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 }}