-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Don't run workflow jobs in forks #13733
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't run workflow jobs in forks #13733
Conversation
|
Kudos, SonarCloud Quality Gate passed!
|
|
@brettcannon I've seen that topic before 😂 So in the end we don't want the workflow to run on every fork? |
|
@kimadeline Jake doesn't want to run in every fork's |
Codecov Report
@@ Coverage Diff @@
## master #13733 +/- ##
==========================================
- Coverage 59.82% 59.80% -0.03%
==========================================
Files 675 675
Lines 37796 37799 +3
Branches 5445 5446 +1
==========================================
- Hits 22612 22605 -7
+ Misses 14026 14018 -8
- Partials 1158 1176 +18
Continue to review full report at Codecov.
|
|
IMO the vast majority of PRs are submitted by the team, who aren't submitting their PRs from |
|
I'm honestly a bit surprised that only us three have an opinion... :) |
|
@jakebailey it might be because I don't think most people bother syncing up their main branch in their fork (I personally never bother and just pull straight from upstream since my fork's copy will never be the canonical version of that branch). |
|
(I do sync origin/main and upstream/main lol) |

These jobs run on any push to master/main, including on forks, leading extra runs and notifications for simple things like pulling upstreams. The workflows also only run on master/main, which means they don't provide any early feedback for people submitting PRs (unless you're submitting your PR from the default branch, which is a no-no anyway).
There's no way to mark an entire workflow to only run on a specific repo (boo), so add the if statement to each of the jobs that don't already have it.
If someone does actually want these checks temporarily, they can modify their config and remove it before PRing, but I personally don't expect anyone to do that.