hmarr/auto-approve-action

GitHub Personal Access Token: What access is needed?

mushlih-almubarak opened this issue · 3 comments

Hi, it says in your documentation:
"To approve the pull request as a different user, pass a GitHub Personal Access Token into the github-token input"
My question is, what access does this action need?

hmarr commented

I just added this information to the README, hopefully that clears it up

Thanks for the answer, but I've tried it and it doesn't work, the error is: Bad credentials. Please check that the 'github-token' input parameter is set correctly.

I have added an access token with the repo scope and then added it as repository secrets with the name PAT on the repo settings page, then I added github-token: ${{ secrets.PAT }} in the configuration file, but it still doesn't work and the error appears as above.

Have you tested this on your side and it works?

Any help is greatly appreciated, thanks!

hmarr commented

Is this in response to a Dependabot pull request?

I just added a note about that to the README too.