Skip to content

Resolve GH_TOKEN conflict in auto-reviewer workflow #1508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .github/workflows/auto-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Auto Assign Reviewer
on:
pull_request_target:
types: [opened, ready_for_review]
workflow_dispatch: {}

permissions:
pull-requests: write
Expand All @@ -26,13 +27,9 @@ jobs:
python -m pip install --upgrade pip
pip install pyyaml

- name: Authenticate with GitHub
run: echo "${{ secrets.GH_PAT }}" | gh auth login --with-token
env:
GH_TOKEN: ${{ secrets.GH_PAT }}

- name: Assign reviewer
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
run: |
python .github/scripts/assign_reviewer.py