Description:

This control ensures that the ability to create repositories in the GitHub organization is restricted, so that only organization owners (trusted members) can create new repositories. Other members must request new repositories through an approved process.


Rationale:

Unrestricted repository creation can lead to repository sprawl, unmanaged code, and accidental exposure of proprietary code or sensitive data in public repositories. Restricting creation to trusted members ensures that every new repository is created deliberately and is subject to the organization’s security and governance controls.


Impact:

  • Members who are not organization owners can no longer create repositories in the organization.

  • Requests for new repositories must be handled by organization owners, which may add a short delay.

  • Existing repositories are not affected and should be reviewed separately.

  • Reduces repository sprawl and the risk of accidental data exposure.


Default Value:

  • Not restricted by default. Organization members can create both public and private repositories unless organization owners restrict repository creation.


Remediation:

Test Plan:

  1. Sign in to GitHub as an organization owner.

  2. Click your profile picture in the upper-right corner, select Organizations, and select the target organization.

  3. Select Settings.

  4. In the Access section of the sidebar, select Member privileges.

  5. Under Repository creation, verify that the repository types members can create are restricted according to organizational policy (e.g., Public, Private, and Internal are all cleared).

  1. If repository creation is not restricted, follow the Implementation Steps to remediate the issue and repeat the test.


Implementation Steps:

  1. Sign in to GitHub as an organization owner.

  2. Click your profile picture in the upper-right corner, select Organizations, and select the target organization.

  3. Select Settings.

  4. In the Access section of the sidebar, select Member privileges.

           

  1. Under Repository creation, clear the repository types that members should not be able to create (e.g., clear Public, Private, and Internal to limit creation to organization owners).

  1. Click Save.

  2. Communicate the process for requesting new repositories to organization members.


Backout Plan:

  1. Sign in to GitHub as an organization owner.

  2. Click your profile picture in the upper-right corner, select Organizations, and select the target organization.

  3. Select Settings.

  4. In the Access section of the sidebar, select Member privileges.

  5. Under Repository creation, select the repository types that members should be able to create.

  6. Click Save.

  7. Verify that members can create repositories according to the updated configuration.


References: