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

"Resource not accessible by personal access token" Not able to understand the issue. #60

Open gaurav-cointab opened 1 year ago

gaurav-cointab commented 1 year ago

Hi Team,

This is the setup.

main.yml name: 'PR Tasks Completed Check' on: pull_request:

jobs: task-check: permissions: write-all runs-on: ubuntu-latest steps:

This ACCESS_TOKEN is my Personal Access Token generated to access my organization's private repos. Repository access: This token has access to all repositories owned by the organization. Organization permissions: This token does not have any organization permissions. Repository permissions: Read access to code and metadata

This ACCESS_TOKEN is saved in my Organization's Secrets, and has access to all the repos inside my organization. ACCESS_TOKEN: Available to all repositories

I am getting this:

Set up job

Run kentaro-m/task-completed-checker-action@v0.1.2 with: repo-token: *** Error: Resource not accessible by personal access token

So I am unable to understand what error I have made.

Please help me understand the issue.

ranadeepsingh commented 9 months ago

You can fix it by going to your Repo's settings -> Actions -> General -> Workflow permissions -> Allow "Read and write permissions"