Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Action doesn't work with pull requests from forked repos #4

Open
platisd opened this issue Apr 11, 2021 · 5 comments
Open

The Action doesn't work with pull requests from forked repos #4

platisd opened this issue Apr 11, 2021 · 5 comments
Labels
good first issue Good for newcomers

Comments

@platisd
Copy link
Owner

platisd commented Apr 11, 2021

What the title says, let's fix it

@platisd platisd added the good first issue Good for newcomers label Apr 11, 2021
@idzm
Copy link

idzm commented Nov 1, 2022

You should use the pull_request_target event instead of the pull_request. Detailed explanation is here.

@platisd
Copy link
Owner Author

platisd commented Nov 13, 2022

🤔 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. 😅

@idzm
Copy link

idzm commented Sep 25, 2023

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"}

@platisd
Copy link
Owner Author

platisd commented Sep 25, 2023

@idzm do you want to take a look at it? :}

The issue is up for grabs but relatively low in my priority list.

@shinyano
Copy link

I faced same problem, and fixed it by adding following lines in my action script:

permissions:
  contents: read
  pull-requests: write

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants