[CI] Fix bot-cherry-pick auth: GITHUB_TOKEN for push, dedicated PAT for PR (#25926)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
a528eb7564
commit
4868b92d47
@@ -44,7 +44,7 @@ jobs:
|
|||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
token: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Configure Git
|
- name: Configure Git
|
||||||
run: |
|
run: |
|
||||||
@@ -131,7 +131,7 @@ jobs:
|
|||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: steps.cherry_pick.outputs.cherry_pick_success == 'true' && github.event.inputs.create_pr == 'true'
|
if: steps.cherry_pick.outputs.cherry_pick_success == 'true' && github.event.inputs.create_pr == 'true'
|
||||||
env:
|
env:
|
||||||
GH_TOKEN: ${{ secrets.GH_PAT_FOR_PULL_REQUEST }}
|
GH_TOKEN: ${{ secrets.GH_PAT_FOR_CHERRY_PICK }}
|
||||||
TARGET_BRANCH: ${{ github.event.inputs.target_branch }}
|
TARGET_BRANCH: ${{ github.event.inputs.target_branch }}
|
||||||
SHORT_SHA: ${{ steps.commit_info.outputs.short_sha }}
|
SHORT_SHA: ${{ steps.commit_info.outputs.short_sha }}
|
||||||
COMMIT_TITLE: ${{ steps.commit_info.outputs.commit_title }}
|
COMMIT_TITLE: ${{ steps.commit_info.outputs.commit_title }}
|
||||||
|
|||||||
Reference in New Issue
Block a user