Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 747 Bytes

README.md

File metadata and controls

32 lines (21 loc) · 747 Bytes

Factory

This is a tool to help me configure new GitHub repositories with secure defaults.

It uses the GitHub Terraform provider.

Prerequisites

brew install tfenv gh jq

Usage

./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.

Development

Format the code

brew install shellcheck
terraform fmt
shellcheck ./enforce.sh