https://github.com/tomdewildt/github-settings-as-code
Manage GitHub repository settings, branch protection, and labels across personal repositories using the Terraform GitHub provider
https://github.com/tomdewildt/github-settings-as-code
actions github github-provider infrastructure-as-code terraform
Last synced: 21 days ago
JSON representation
Manage GitHub repository settings, branch protection, and labels across personal repositories using the Terraform GitHub provider
- Host: GitHub
- URL: https://github.com/tomdewildt/github-settings-as-code
- Owner: tomdewildt
- License: mit
- Created: 2026-05-07T06:28:15.000Z (about 2 months ago)
- Default Branch: master
- Last Pushed: 2026-05-28T12:39:07.000Z (26 days ago)
- Last Synced: 2026-05-28T14:17:44.478Z (26 days ago)
- Topics: actions, github, github-provider, infrastructure-as-code, terraform
- Language: HCL
- Homepage:
- Size: 48.8 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# GitHub Settings As Code
[](https://github.com/tomdewildt/github-settings-as-code/blob/master/LICENSE)
Manage [GitHub](https://github.com/) repository settings, branch protection, and labels across personal repositories using the [Terraform GitHub provider](https://registry.terraform.io/providers/integrations/github/latest/docs).
# How To Run
Prerequisites:
- mise version `2025.1.0` or later
- terraform version `1.5.0` or later
- gh cli version `2.92.0` or later
### Development
1. Run `mise run init` to initialize the environment.
2. Run `mise run provision` to provision the GitHub settings.
# References
[Terraform Docs](https://developer.hashicorp.com/terraform/docs)
[Terraform GitHub Provider Docs](https://registry.terraform.io/providers/integrations/github/latest/docs)
[GitHub REST API Docs](https://docs.github.com/en/rest)