'Share GitHub Actions workflow within organization

It seems like it's possible to create a .github repository within the organization and share workflows across my org.

The problem is, it seems like the .github repo must be public. What's the idea behind this? Why would I want to create a public repo for all my workflows within my organization?

I thought switching to GitHub Enterprise would help me on this matter, but it doesn't looks like it does.

Any ideas?



Solution 1:[1]

https://github.com/github/roadmap/issues/51

private repository for workflow templates is on the Roadmap but its indeed does not supported at the moment.

too bad.

Solution 2:[2]

There is a workaround to share your github action workflows privately. You can create a private repo and save your workflows as template.

https://medium.com/@er.singh.nitin/how-to-share-the-github-actions-workflow-in-an-organization-privately-c3bb3e0deb3

Solution 3:[3]

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 user14242404
Solution 2 Nitin Singh
Solution 3 vikas027