Skip to content

Run a GitHub action on pull_request for PR opened from a forked repo #25012

Answered by chrispat
pvdlg asked this question in Actions
Discussion options

You must be logged in to vote

For the recent update for GitHub Actions we have made a lot of changes to how workflows are run.

A workflow that specifies a pull_request as the event will always run in the repository that contains that pull_request.  So when I raise a pull_request to the upstream repo from a fork of that repo the workflow run will be in that upstream repo.  

https://help.github.com/en/articles/events-that-trigger-workflows#pull-request-events-for-forked-repositories

During the beta you may or may not have GitHub Actions enabled in your user account or organization.  If you don’t have GitHub Actions enabled forking a repo that has actions workflows into your account will not cause any runs to occur.

Replies: 19 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@amithm7
Comment options

Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hlindberg
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment