Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 3
Message 1 of 33

Github Workflow not running from pull request from forked repository

I have a Github Workflow that is triggered on a pull request like so:

on: [pull_request]

 But when I open a PR from my forked repository to the upstream repository, the Github Action is not being triggered on the upstream repository.

From what I've read in the documentation here, it seems like the Workflow should be triggered, but the only time that it is triggered is on the merging of the pull request into the upstream repository.

When you open a pull request from a forked repository, the pull request opens on the base repository by default. In this scenario, GitHub sends the pull_request event to the base repository and no pull request events occur on the forked repository because the webhook configuration of the original base repository doesn't apply to forked repositories.

I'd like to confirm what the correct behaviour is here. I have Github Actions enabled on both my user account and the upstream repositories account. 

32 Replies
Highlighted
Copilot Lvl 2
Message 2 of 33

Re: Github Workflow not running from pull request from forked repository

I am getting the same problem. Although, my action is triggerd in my forked repository insted of upstream. Both are private. I need to figure out how to trigger build on upstream, like what Travis does. It seems that it is working in public repos, but not in private.

Highlighted
Copilot Lvl 3
Message 3 of 33

Re: Github Workflow not running from pull request from forked repository

I haven't tested it with public repos but I'm definitely experiencing that behaviour on private ones. It'd be good to get some clarification on what the actual behavior is. 

Highlighted
Copilot Lvl 2
Message 4 of 33

Re: Github Workflow not running from pull request from forked repository

Same problem, tested with multiple repositories private and public, the actions are never triggered when the PR is coming from a fork

Highlighted
Copilot Lvl 2
Message 5 of 33

Re: Github Workflow not running from pull request from forked repository

Same issue,hope someone could help
Highlighted
Copilot Lvl 3
Message 6 of 33

Re: Github Workflow not running from pull request from forked repository

Glad others are experiencing this. It'd be really good to get some clarification from Github.

Highlighted
Copilot Lvl 2
Message 7 of 33

Re: Github Workflow not running from pull request from forked repository

Started a thread with Github folks, referencing this thread. 

Highlighted
Copilot Lvl 3
Message 8 of 33

Re: Github Workflow not running from pull request from forked repository

Thanks, keep me posted @jiria 

Highlighted
Pilot Lvl 1
Message 9 of 33

Re: Github Workflow not running from pull request from forked repository

Hi @jiria Is there any update ? 

Highlighted
Copilot Lvl 2
Message 10 of 33

Re: Github Workflow not running from pull request from forked repository

No response yet. I double checked the ticket, turns out my email response was not recorded. So I have responded directly through the webform. I will report back here as soon as I hear back from Github support.