marocchino / sticky-pull-request-comment

create comment on pull request, if exists update that comment.
MIT License
454 stars 79 forks source link

Admin privilages are required #1397

Closed nbolton closed 1 day ago

nbolton commented 2 months ago

I created a PAT with discussion:write permissions, but then I got an error:

image

I was wary of creating a PAT for writing comments, but I'm certain that creating a PAT with admin is a bad idea.

Why is it that this action requires admin privs?

marocchino commented 2 months ago

discussion:write is about discussion menu. maybe you need contents: write or pull-requests: write. ref Contents" https://docs.github.com/en/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token#overview