Skip to content

CIS.GH.1.2.2: Ensure repository creation is limited to specific members

ID CIS.GH.1.2.2
Severity Medium
Suite CIS Microsoft 365 Foundations Benchmark
Product GitHub
Feature Organization settings
Security area Access control
Resource type Tenant
User impact of fixing Medium
Effort to fix Low
Benchmark CIS GitHub Benchmark 1.2.0, 1.2.2 (L1, GH Level 1)
Framework controls cis-github:1.2.2
nist-800-53-r5:AC-6 Least Privilege
MITRE ATT&CK T1567.001
Reads from GitHub

1.2.2 (L1) Ensure repository creation is limited to specific members

CIS Benchmark: CIS GitHub Benchmark v1.2.0

Assessment Status: Manual

Repository sprawl makes source ownership, visibility, and review harder to manage. Limiting who can create public and private repositories reduces the chance that organization code or data is exposed through an unmanaged repository and keeps the repository inventory easier to monitor.

Members who previously created repositories directly may need an owner, administrator, or approved internal process to create new repositories for them.

CIS marks this recommendation as Manual. This Mito test automates the portion of CIS GH 1.2.2 that maps to documented GitHub REST API evidence. It should be treated as automated evidence collection for the corresponding GitHub setting, not as a claim that every possible manual review path has been fully evaluated.

This test checks the organization member privilege settings returned by GET /orgs/{org}.

Endpoint: GET /orgs/{org}

Evidence fields:

  • members_can_create_public_repositories
  • members_can_create_private_repositories
  • members_can_create_internal_repositories when returned, shown as informational
  • members_allowed_repository_creation_type is displayed when returned, but is not decisive

The test passes when public and private repository creation are false. Internal repository creation is shown as additional enterprise/GHEC context only because the CIS GH 1.2.2 literal audit covers public and private repository creation.

GitHub requires organization-owner visibility for full organization details. Use Connect-MtGitHub with a classic PAT that has admin:org, or a fine-grained PAT with organization Members read and Administration read permissions.

In the organization settings, open Member privileges and clear the public and private repository creation options for members. For GHEC organizations associated with an enterprise, review internal repository creation separately as an enterprise governance decision.

This test uses the granular repository creation fields because GitHub is replacing the legacy members_allowed_repository_creation_type umbrella field. That umbrella value is displayed when returned, but is not decisive. If required granular fields are not returned, the test skips with a field-specific reason.


Mito check, based on CIS Microsoft 365 Foundations Benchmark. Author: thetechgy. Open-source licences.

Open-source licences. CIS Benchmark material © Center for Internet Security, Inc.; CISA SCuBA baselines are public domain (CC0).

© 2026 Virtual Petals. Mito is a Virtual Petals service, hosted in Microsoft Azure UAE North.