[CI] Skipping workflow runs on forks #3429
Labels
area/ci
Continuous Integration
good first issue
Good for newcomers
help wanted
Extra attention is needed
Originally raised by @samirparhi-dev in https://discuss.layer5.io/t/github-wf-issue-during-pull-request/125
Current Behavior
When a contributor pushes to their fork, many workflows which should ideally run only on https://github.com/meshery/meshery also get triggered. They need some secrets to complete successfully but we don't provide secrets to our forks because it may have bad consequences. Thus the runs end up failing on forks which is annoying.
Desired Behavior
Recognize such workflows and add conditions to trigger them only when a commit is created in https://github.com/meshery/meshery.
Implementation
Example workflow https://github.com/meshery/meshery/blob/master/.github/workflows/build-and-release-edge.yml
Change the job
to
The text was updated successfully, but these errors were encountered: