Skip to content

Commit d3ddd17

Browse files
authored
Merge pull request bootc-dev#1523 from gursewak1997/use-ghapp-token
Update workflow to use Github App token for reviewer assignment
2 parents 1d5974e + 4e32026 commit d3ddd17

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/auto-review.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ jobs:
1111
pull-requests: write
1212
contents: read
1313
issues: write
14-
read:org: read
1514

1615
steps:
1716
- name: Checkout code
@@ -27,9 +26,16 @@ jobs:
2726
python -m pip install --upgrade pip
2827
pip install pyyaml
2928
29+
- name: Generate Bootc Actions Token
30+
id: bootc_token
31+
uses: actions/create-github-app-token@v1
32+
with:
33+
app-id: ${{ secrets.APP_ID }}
34+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
35+
3036
- name: Assign reviewer
3137
env:
3238
PR_NUMBER: ${{ github.event.pull_request.number }}
33-
GH_TOKEN: ${{ github.token }}
39+
GH_TOKEN: ${{ steps.bootc_token.outputs.token }}
3440
run: |
3541
python .github/scripts/assign_reviewer.py

0 commit comments

Comments
 (0)