by growse · 5y ago · 0 comments
I figure this must be an easily solved problem, but not sure how everyone else is doing it.
It's moving the problem but at the end of the day the repo owner has to look over and choose to accept or reject the PR.
I seem to remember that a CI run for a PR takes the workflow file from the HEAD of the branch, rather than master. But I'd have to check.
So even if you have a workflow that requires a manual trigger, I can just fork, and create a PR that updates that trigger to be `pull_request` and the workflow will run as soon as I create the PR. I don't need the PR to be accepted before I can start running arbitrary code on your self-hosted runner.
Or am I missing something?