Skip to content

Commit d92333c

Browse files
authored
Merge pull request #1508 from gursewak1997/unset-gh-pat
Resolve GH_TOKEN conflict in auto-reviewer workflow
2 parents c4bc043 + 5219fad commit d92333c

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

.github/workflows/auto-review.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Auto Assign Reviewer
33
on:
44
pull_request_target:
55
types: [opened, ready_for_review]
6+
workflow_dispatch: {}
67

78
permissions:
89
pull-requests: write
@@ -26,13 +27,9 @@ jobs:
2627
python -m pip install --upgrade pip
2728
pip install pyyaml
2829
29-
- name: Authenticate with GitHub
30-
run: echo "${{ secrets.GH_PAT }}" | gh auth login --with-token
31-
env:
32-
GH_TOKEN: ${{ secrets.GH_PAT }}
33-
3430
- name: Assign reviewer
3531
env:
3632
PR_NUMBER: ${{ github.event.pull_request.number }}
33+
GH_TOKEN: ${{ github.token }}
3734
run: |
3835
python .github/scripts/assign_reviewer.py

0 commit comments

Comments
 (0)