1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-05 06:45:13 +01:00

Update workflow to use gh-app token for assignment

This commit is contained in:
gursewak1997
2025-08-16 10:33:53 -07:00
parent 1d5974e6cd
commit 4e32026294

View File

@@ -11,7 +11,6 @@ jobs:
pull-requests: write
contents: read
issues: write
read:org: read
steps:
- name: Checkout code
@@ -27,9 +26,16 @@ jobs:
python -m pip install --upgrade pip
pip install pyyaml
- name: Generate Bootc Actions Token
id: bootc_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ secrets.APP_ID }}
private-key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Assign reviewer
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
GH_TOKEN: ${{ github.token }}
GH_TOKEN: ${{ steps.bootc_token.outputs.token }}
run: |
python .github/scripts/assign_reviewer.py