-
Notifications
You must be signed in to change notification settings - Fork 50
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
Not working for PRs with branches from forks #10
Comments
I'm afraid that's expected behaviour. It's related to how GH handles actions for forked repositories. For some more information you could have a look at this related issue from another action: pascalgn/automerge-action#46 I'm really sorry about that, but I'm afraid there's not much I can do about it. If you have any ideas on how to solve this problem, I would be happy to hear them! |
Thanks @pascalgn, that's unfortunate. You might want to add it to the Action description. I investigated a bit more: After the first few failures, we changed from the normal https://github.com/fastlane/fastlane/runs/462203915?check_suite_focus=true
This is of course can not work. But before that, the error looks like that: https://github.com/fastlane/fastlane/runs/451209007?check_suite_focus=true
Did you already investigate what exactly is throwing this error and why? I am not sure I found the exact thing that applies here in the linked thread. |
Yeah, I'm not sure if that makes it better or worse. If I understand the docs correctly, the "default" GITHUB_TOKEN at least has read-only access to forked repositories in some cases. This is probably not true for personal access tokens. I understand the reasoning behind some of the decisions around GH actions and forked repositories, but I think the current state makes a lot of common use cases impossible 😞 |
Same issue here! Unfortunately just saw the problem after having installed the Action in my repo (which is an open source project where people create forks for their collaboration). Agree with @janpio that you should add this restriction to the Action description. |
I think this is not yet fixed, or at least it's not clear what the cause for the problem is. However, it's a long time since there was some activity in this issue, so I will close it for now. If you have any new information or need any help, feel free to reopen this issue! |
Thanks for this great Action!
I recently added it to https://github.com/fastlane/fastlane/. Unfortunately it seems it only works with PRs for branches of the same repository, not for the many PRs from third party forks and their branches.
Am I doing something wrong or is this expected?
https://github.com/fastlane/fastlane/blob/master/.github/workflows/size-label.yml
https://github.com/fastlane/fastlane/actions?query=workflow%3Asize-label
fastlane/fastlane#16070
The text was updated successfully, but these errors were encountered: