NoteIn order to integrate with GitHub, you need to have permission to install the GitHub App on your GitHub organization/repository. If you do not have these permissions, please ask an admin or an authorized user to create the template
New Template
If you would like to create your first GitHub Integrated Template, please see Create Your First Template instead.- In the top right corner of the Templates screen, click โADD A NEW TEMPLATEโ
- Pick your template type, name it, and then click โNEXTโ
- Click on the GitHub.com button
- Pick the repository containing your IaC configuration
- If you would like to pull the code from a specific revision or branch, enter it in the Revision field. Leaving this field empty will use your default branch, which is usually master/main
- Under Terraform Folder, enter the folder your Terraform files are located in. If your Terraform files are in the repositoryโs root, leave this field empty
- Click on โNEXTโ to proceed to the Variables section
- Add the Environment and Terraform variables that youโd like to be used during deployment, then click โNEXTโ to go to the final Projects section
- Pick the projects that youโd like to have access to deploy this template, then click on โDONEโ to create the template


Existing Template
If you would like to integrate an existing template with GitHub via a GitHub App:- Go to the Templates screen, and click on โSettingsโ for the template you would like to integrate with GitHub
- Click on โVCSโ. From there you can click on the โGitHub.comโ button, and integrate with GitHub as you would for a new template
Multi-Org Configuration
- Click on โGitHub.comโ to create a new template
- You will get a GitHub popup. Login if youโre not already logged in
- In the popup, pick the organization you would like to authorize
.pngโ)
- After selecting the GitHub organization, you will be transferred to the GitHub App settings page for that organization
.pngโ)
- Here, you need to change something so that the GitHub dialogue will let you save. If โOnly select repositoriesโ is already enabled, simply click on โAll repositoriesโ and then re-click on โOnly select repositories.โ You will then be able to save without changing any GitHub App permissions
- Upon saving, env zero UI should be able to list the repositories. Once the template is saved, the env zero organization is integrated with GitHub