kentaro-m / task-completed-checker-action

:ballot_box_with_check: A GitHub action that checks if all tasks are completed in the pull requests.
MIT License
71 stars 27 forks source link

What permissions are required by this plugin? #62

Closed adam-a closed 1 year ago

adam-a commented 1 year ago

Getting the following:

Run kentaro-m/task-completed-checker-action@v0.1.2
  with:
    repo-token: ***
Error: Resource not accessible by integration
lichtenfeldn-cc commented 1 year ago

It seems that setting write for checks is sufficient:

name: 'PR Tasks Completed Check'
on: 
  pull_request:
    types: [opened, edited]
jobs:
  task-check:
    runs-on: ubuntu-latest
    permissions:
      checks: write
    steps:
      - uses: kentaro-m/task-completed-checker-action@v0.1.2
        with:
          repo-token: "${{ secrets.GITHUB_TOKEN }}"