Closed beckermr closed 4 years ago
@isuruf can you take a look here? For whatever reason the token they give us is not allowing me to push to forks.
After reading https://help.github.com/en/actions/reference/events-that-trigger-workflows#pull-request-events-for-forked-repositories-2 it looks like it is expected. Maybe we should ask github if they can extend the permissions to write on fork repo branch in addition to read on base repo.
Right but I assumed that if I had "Allow edits from maintainers." checked, then it would let me write.
Something is even weirder here though. I cannot even comment on a PR in the same repo.
OK so it works for non-forked PRs. I don't quite understand how I didn't hit this issue with status and check_suite events, but I guess these are always sent to the default branch. The docs say pull requests go to the base repo as well, but I guess that is not quite what they mean.
This PR will have to be on ice until the permissions can be changed. Certain pull requests events like labels should have write permissions since only maintainers can create labels in the first place.
Looks good to me. Thanks for working on this.
Btw, as this is now using repository_dispatch
events, can we change the name of this action to something like, webservice-dispatch-action
so that we can add more functionality if necessary later on.
I'm going to merge and then swap the names in another PR.
Checklist
0
(if the version changed)conda-smithy
(Use the phrase code>@<space/conda-forge-admin, please rerender in a comment in this PR for automated rerendering)