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:
10
.github/workflows/auto-review.yml
vendored
10
.github/workflows/auto-review.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user