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 }}