Skip to content

Bot "github-actions" not allowed to comment locked PR #25230

Answered by Yanjingzhu
alexbde asked this question in Actions
Discussion options

You must be logged in to vote

Sorry for the delay response. When you use GITHUB_TOKEN , all of the interactions with the repository are on behalf of the Github-actions bot.

Github-actions bot doesn’t have enough permission to create comments in locked pull request.  

According to the message : You and other members of teams with write access to this repository can still leave comments that others can see.

As a work around, I would suggest you to use your own PAT in the action for adding comment to Pull request. You can store your PAT in secrets and use ${{ secrets.name }} in action.

For Creating and using encrypted secrets, please refer to this document:

https://help.github.com/en/actions/automating-your-workflow-wit…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants