From 4868b92d4750cc70e6f4487de379c32d93dbbdbe Mon Sep 17 00:00:00 2001 From: Kangyan-Zhou Date: Thu, 21 May 2026 10:28:42 +0800 Subject: [PATCH] [CI] Fix bot-cherry-pick auth: GITHUB_TOKEN for push, dedicated PAT for PR (#25926) Co-authored-by: Claude Opus 4.7 (1M context) --- .github/workflows/bot-cherry-pick.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bot-cherry-pick.yml b/.github/workflows/bot-cherry-pick.yml index bfc70392e..007b4e06d 100644 --- a/.github/workflows/bot-cherry-pick.yml +++ b/.github/workflows/bot-cherry-pick.yml @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }} + token: ${{ secrets.GITHUB_TOKEN }} - name: Configure Git run: | @@ -131,7 +131,7 @@ jobs: - name: Create Pull Request if: steps.cherry_pick.outputs.cherry_pick_success == 'true' && github.event.inputs.create_pr == 'true' env: - GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }} + GH_TOKEN: ${{ secrets.GH_PAT_FOR_CHERRY_PICK }} TARGET_BRANCH: ${{ github.event.inputs.target_branch }} SHORT_SHA: ${{ steps.commit_info.outputs.short_sha }} COMMIT_TITLE: ${{ steps.commit_info.outputs.commit_title }}