From 2cce5a75dc232c57acfaa3668176268c538d823c Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Mon, 4 Jul 2022 13:02:04 +0200 Subject: [PATCH] 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 --- .github/workflows/auto_request_review.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.50.1