Control Github Repository public/private visibility using a YAML file and your CI (Continuous Integration) system.
Github Enterprise Organizations can restrict members from creating Public repositories or making repositories Public. This project enables Infrastructure/DevOps teams to enable Engineers to make repositories public using git (as the historical record) and a CI system.
-
Set a
GITHUB_TOKEN
environment variable -
Create a
repos.yaml
containing the followingorganization: ORGANIZATION_NAME repos: - name: REPOSITORY_NAME private: false
-
Run
grvm repos.yaml
//TODO
Terraform can maintain the public/private setting of a repository, but it owns the entire repository. The Terraform Github provider is useful in many cases, but overkill in others.