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

"Error: Resource not accessible by integration" for a PR from a fork #227

Closed
christian-kreuzberger-dtx opened this issue Jan 25, 2021 · 2 comments · Fixed by #258
Closed

Comments

@christian-kreuzberger-dtx

image

An external contributor created a PR and our action tried to comment on it. Unfortunately it failed with the above error message.
I'm guessing this error means that the github token used does not have permission to perform this. This is also indicated here: actions/first-interaction#10

Any idea how to fix this?

@christian-kreuzberger-dtx
Copy link
Author

After digging a bit deeper, one possible fix is to use on: pull_request_target rather than on: pull_request.

Though this means we should not build any code etc... in the same workflow (which we do, in our case).

For now I'll disable the PR reporter for forks.

@marocchino
Copy link
Owner

marocchino commented Feb 10, 2021

The most probable alternative right now is to use crontab or artifact.

Crontab is not an immediate response, and artifacts need to upload files every time. Comments using artifacts will be summarized later and updated in README. I need some testbed for it. I don't know how to get it, but I'll try.

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

Successfully merging a pull request may close this issue.

2 participants