kentaro-m / auto-assign-action

An action which adds reviewers to the pull request when the pull request is opened.
MIT License
298 stars 89 forks source link

Warnning "Resource not accessible by integration" reported and no reviewers are assigned. #136

Closed bluven closed 1 year ago

bluven commented 1 year ago

I was trying out this action, but an warning "Resource not accessible by integration" was reported and no reviewers were assigned.

The output is here: https://github.com/bluven-org/test/actions/runs/5374670624/jobs/9750300069

My action config:

jobs:
  add-reviews:
    runs-on: ubuntu-latest
    permissions: write-all
    steps:
      - uses: kentaro-m/auto-assign-action@v1.2.5
        with:
          configuration-path: '.github/reviewers2.yaml' # Only needed if you use something other than .github/auto_assign.yml
Secreto31126 commented 1 year ago

Try using this permissions, they worked for me:

permissions:
  contents: read
  pull-requests: write
bluven commented 1 year ago

Thanks it works.