Reusable workflows can't be executed on other GitHub Organizations Self-hosted Runners #140694
Replies: 1 comment
-
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Select Topic Area
Bug
Body
I created a repository to reproduce the issue easily: https://github.com/suzuki-shunsuke/test-hello-reusable-workflow
Issue
Reusable Workflows can't be executed in other GitHub Organizations' Self-hosted Runner.
For example, the Reusable Workflow suzuki-shunsuke/hello-reusable-workflow has an input
runs-on
to change the worfklow job'sruns-on
.So callers can change the runs-on:
This works well in case of GitHub hosted runner such as
ubuntu-latest
,windows-lates
, andmacos-latest
.But if you specify your Self-hosted Runner labels, the workflow causes the following error.
What we checked
We checked our GitHub Organization setting and Self-hosted Runner setting, but we can't see any issues.
All workflows
:How to reproduce
A Self-hosted Runner is required.
runs-on
to your Self-hosted Runner labelsThen the workflow job
test-github-hosted-runner
would pass buttest-self-hosted-runner
would fail.Related issues and discussions
We can find some related issues and discussions, but they are inactive.
Especially, a GitHub supporter said the issue was solved in the comment, but as some people and me said this issue hasn't been solved yet.
Unfortunately, the discussion was treated as
answered
, we can't expect the discussion will be handled again.So I created this discussion.
Workaround
A workaround is to fork Reusable workflows to your GitHub Organizations, but it isn't ideal.
Is the restriction appropriate?
Apparently, the restriction is intentional.
But I'm not sure if the restriction is appropriate in terms of security.
I'm not sure why we can run third party actions in Self-hosted Runners but can't run Reusable workflows.
Due to this restriction, we can't fully utilize reusable workflows as OSS.
Beta Was this translation helpful? Give feedback.
All reactions