[ci] Disable workflows with secrets and custom runners to run on fork#41515
[ci] Disable workflows with secrets and custom runners to run on fork#41515HollowMan6 wants to merge 2 commits intohuggingface:mainfrom HollowMan6:main
Conversation
Signed-off-by: Hollow Man <[email protected]>
The CI has been broken since May 2025 and no one seems to care about it https://github.com/huggingface/transformers/actions/runs/15233479801 Signed-off-by: Hollow Man <[email protected]>
|
I feel like we're probably not leaking secrets to everyone who forks the repo, so I'm not sure if this is necessary! cc @ydshieh to confirm |
|
I feel like it would be preferable to exclude those CIs that can't run in a fork, otherwise it's quite annoying to get those floods of error messages from GitHub if we modify something in the fork while we still want some CI to be working. |
|
Ah, that's a good point, sorry! I misread this as being about protecting secrets rather than improving the CI in forks |
|
Yes, secret won't be leaked but triggered on forked repo is annoying. Let me think if this PR is the best approach ... Thank you for opening. |
|
Okay, yeah, I was meant to still get some CI working when we modify something in the fork. Now I double checked the CI and saw that almost all the CIs are disabled now... So this might not be necessary at all, and it's better to disable the GitHub Actions completely. Thanks for your feedback anyway. Closing this PR. |

What does this PR do?
Skip those workflows by checking if the repository is owned by
huggingface.Tested by directly pushing to the fork: https://github.com/HollowMan6/transformers/commit/14be7f3c250c3ba1887877fc1df67b2e87559759
and opening a PR on the fork side:
Before submitting
Pull Request section?
to it if that's the case.
documentation guidelines, and
here are tips on formatting docstrings.
Who can review?
Anyone in the community is free to review the PR once the tests have passed. Feel free to tag
members/contributors who may be interested in your PR.
@ydshieh