diff --git a/.github/workflows/auto-review.yml b/.github/workflows/auto-review.yml index 96efe0135..cb370a065 100644 --- a/.github/workflows/auto-review.yml +++ b/.github/workflows/auto-review.yml @@ -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