From: Daniel Wagner Date: Mon, 4 Jul 2022 11:02:04 +0000 (+0200) Subject: build: Give auto review bot write permission on pull request X-Git-Tag: v2.1-rc0~15^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=2cce5a75dc232c57acfaa3668176268c538d823c;p=users%2Fsagi%2Fnvme-cli.git build: Give auto review bot write permission on pull request Currently setting the reviewer from the bot fails with: Error: HttpError: Resource not accessible by integration The GITHUB_TOKEN needs enough permission to update the PR. Links: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token Signed-off-by: Daniel Wagner --- diff --git a/.github/workflows/auto_request_review.yml b/.github/workflows/auto_request_review.yml index fa3d2141..6430f4cb 100644 --- a/.github/workflows/auto_request_review.yml +++ b/.github/workflows/auto_request_review.yml @@ -1,3 +1,4 @@ +--- name: Auto Request Review on: @@ -8,9 +9,11 @@ jobs: auto-request-review: name: Auto Request Review runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Request review based on files changes and/or groups the author belongs to uses: necojackarc/auto-request-review@v0.7.0 with: token: ${{ secrets.GITHUB_TOKEN }} - config: .github/reviewers.yml # Config file location override + config: .github/reviewers.yml # Config file location override