Restrict repository creation to private or internal. Restricting repository creation in your organization to help prevent sensitive information from being exposed. To protect your organization's data, you can configure permissions for creating repositories in your organization. Members should be able to create only private or internal repositories, visible to organization members with permission. Members will not be able to create public repositories, visible to anyone. Outside collaborators can never create repositories. Learn more: https://docs.github.com/en/enterprise-cloud@latest/code-security/getting-started/best-practices-for-preventing-data-leaks-in-your-organization#prevent-data-leaks https://docs.github.com/en/enterprise-cloud@latest/organizations/managing-organization-settings/restricting-repository-creation-in-your-organization
1. Go to Organization Settings. 2. In the 'Access' section of the sidebar, click Member privileges. 3. Under the 'Repository creation' section. 4. Ensure the 'Public' setting is disabled.
{
"target": "GHOrganization",
"if": {
"allOf": [
{
"resource": "GHOrganization",
"property": "MembersCanCreatePublicRepositories",
"operator": "equals",
"value": false
}
]
},
"then": {
"effect": "Audit"
}
}
Copyright © DevOps Shield. All Rights Reserved. Privacy Policy | Cookie Policy | Terms and Conditions