Open platisd opened 3 years ago
You should use the pull_request_target
event instead of the pull_request
. Detailed explanation is here.
:thinking: If I remember right, there was something code-wise that was the culprit, not necessarily the permissions. Perhaps I should have written a more descriptive analysis of the bug. :sweat_smile:
Problem is with writing results:
Posting results to GitHub failed with code: 403
{"message":"Resource not accessible by integration","documentation_url":"https://docs.github.com/rest/issues/comments#create-an-issue-comment"}
@idzm do you want to take a look at it? :}
The issue is up for grabs but relatively low in my priority list.
I faced same problem, and fixed it by adding following lines in my action script:
permissions:
contents: read
pull-requests: write
What the title says, let's fix it