🔥Now, You Can Use This Github App!🔥
This is a GitHub App that monitors the creation of public repositories and changes from private to public within a GitHub Organization.
It was created as a replacement for Prevent Public Repos by issc29, which is no longer functioning.
Actions Monitored:
- Creation of public repositories
- Changes from private to public
How This GitHub App Works:
- Creates an issue in both the affected repository and the
org-settingsrepository.
Rate Limit:
- Currently, the monitored actions are limited to a maximum of 50 times per hour.
※ Currently, the functionality to apply configurations from `.github/prevent-public-repos.yml` in the `org-settings` repository is not implemented.
- Install this GitHub App in your Organization
- Create a repository named
org-settingsand add a.github/prevent-public-repos.ymlfile inside it. (Currently, this configuration file is not utilized.) - To test its functionality, try creating a public repository. An issue should be created in both that repository and the
org-settingsrepository.
Contributions are welcome!
- There are no strict rules for PRs or issues. Please follow general standards.
- Contributions to the TODO section below would be greatly appreciated.
- Currently, merging requires approval from the CODEOWNER (
masa0902dev).
- Implement the functionality to apply settings from
.github/prevent-public-repos.ymlin theorg-settingsrepository.
- Implement automatic reversion of public repositories to private (currently, only issue creation is supported).
- Add the ability to register repositories that should not be monitored for public status changes (currently, all repositories are monitored).
- Allow customization of issue title and body (currently, values from
constants.tsare used). - Implement email notification functionality for specified users.
- issc29: Author of
Prevent Public Repos
※ This GitHub App prevent-public-repos-2025 has no dependency on Prevent Public Repos by issc29, as no code has been reused. If this GitHub App stops working, please open an issue in this repository.
- tmknom: Author of
GitHubセキュリティ Organization運用のベストプラクティス