GitHub – How to Default GitHub Enterprise to Private Repositories

github

On the GitHub Enterprise system, is there a way to make "private" the default mode for repositories?

We're setup to allow both our normal internal users as well as certain vendors to have access to our instance. The site as a whole is "private" (so we're not leaking private code to the world), but we don't want the vendors to see all the code in the system, just their own. So, we setup our repositories as private and add permission groups as appropriate.

At least in theory. In practice, new repositories default to public (any authenticated user can see them), and more often than not, the developer setting up the new repository forgets to go and make it private. I'd like to make private the default so that there's no way to forget that important step.

Best Answer

GitHub recently added support to make repositories private by default

Setting