Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 3
Message 11 of 14

Re: Run a GitHub action on `pull_request` for PR opened from a forked repo

Secret variables aren't available on PR by default.

 

Here is discussion about possibility to pass secret variable to PR: https://github.community/t5/GitHub-Actions/Make-secrets-available-to-builds-of-forks/m-p/30678#M508

Pilot Lvl 1
Message 12 of 14

Re: Run a GitHub action on `pull_request` for PR opened from a forked repo

I tried this with two accounts that both have Actions enabled:

 

# Create repo for user A
# Fork into B's account

# Add a branch, create a PR back into A

 

... then a `push` action will run in B, but the results will not be shown in the PR at A.

 

Or am I misunderstanding something?

Copilot Lvl 2
Message 13 of 14

Re: Run a GitHub action on `pull_request` for PR opened from a forked repo

Same problem.

Both account with GitHub Action CI enabled but nothing is triggered on the upstream when a PR is made from a fork..

Copilot Lvl 2
Message 14 of 14

Re: Run a GitHub action on `pull_request` for PR opened from a forked repo

Can someone elaborate on whether the marked solution is the current behaviour or the future intended behaviour?

 

Creating a PR from a fork that has Actions enabled currently does not trigger an actions workflow run on upstream but instead triggers the workflow run on the fork