create-or-update-comment icon indicating copy to clipboard operation
create-or-update-comment copied to clipboard

Doc question about using PAT

Open Youssef1313 opened this issue 1 year ago • 1 comments

In README:

You can create and update comments in another repository by using a PAT instead of GITHUB_TOKEN. The user associated with the PAT must have write access to the repository.

If I'm using a PAT of my account, why do I have to have write access to the repo if I can generally add comments on any public repos as long as the conversation isn't locked?

Youssef1313 avatar Jan 11 '25 07:01 Youssef1313

If I'm using a PAT of my account, why do I have to have write access to the repo if I can generally add comments on any public repos as long as the conversation isn't locked?

I can't remember if I've ever tested whether it works to use a PAT to add comments on a repository that I don't have write access to. 🤔 Assuming it doesn't work, my guess would be that its an anti-abuse mechanism. I'm really not sure, though.

peter-evans avatar Jan 13 '25 09:01 peter-evans