From 8b44d7c967a9c6eaef72469959d1a07c143dad54 Mon Sep 17 00:00:00 2001 From: Roman Date: Wed, 24 Jun 2026 14:17:10 +0800 Subject: [PATCH] fix: use PAT to authorize workflow to create PR --- .github/workflows/corpus-update.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/corpus-update.yml b/.github/workflows/corpus-update.yml index 3d0ebbaa..f27b48a5 100644 --- a/.github/workflows/corpus-update.yml +++ b/.github/workflows/corpus-update.yml @@ -16,8 +16,8 @@ name: Corpus update # # Every per-target result is uploaded as an artifact; a single `commit` job # aggregates them into ONE pull request. Matrix jobs never push, so they never -# race on the branch. Note: a PR opened with the default GITHUB_TOKEN does NOT -# retrigger PR-gating workflows (GitHub's loop guard) — desired for a chore PR. +# race on the branch. The PR is opened with a classic PAT (secret +# CORPUS_BOT_TOKEN). on: schedule: @@ -292,7 +292,7 @@ jobs: - name: Create or update pull request uses: peter-evans/create-pull-request@v6 with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.CORPUS_BOT_TOKEN }} base: main branch: automation/corpus-update delete-branch: true