This is a tool to help me configure new GitHub repositories with secure defaults.
It uses the GitHub Terraform provider.
brew install tfenv gh jq
./enforce.sh <REPO> <OWNER>
If <REPO>
does not exist yet, it will be created based on the https://github.com/juliendoutre/template template.
If <OWNER>
is omitted, the current authenticated GitHub user will be used.
You may want to edit the repository's configuration in main.tf to tweak the settings depending on your needs.
brew install shellcheck
terraform fmt
shellcheck ./enforce.sh