Skip to content

Repository files navigation

terraform-github-validation

A collection of modules used to validate GitHub resource configurations in Terraform.

Note: Terraform Checks were released in Terraform 1.5.0. This module requires Terraform 1.5.0 or later.

Usage

To validate a GitHub organization's configuration, call the module in your Terraform configuration and specify the configuration options you expect. Checks for variables not explicitly set will assume the settings from GitHub are desirable.

module"validate_github_org_config" {
source="garnertb/terraform-github-checks"org_name="garnertb-io"advanced_security_enabled_for_new_repositories=falsedependabot_alerts_enabled_for_new_repositories=true
}

GitHub Authentication and Permissions

Authenticating

Follow authentication instructions from the Terraform GitHub Provider to authenticate with the GitHub API.

GitHub App

If you are using a GitHub App to authenticate with the GitHub API, you will need to grant the following permission scopes:

PermissionScopeUse
Administrationread-onlyUsed to read the organization's settings.
Membersread-onlyUsed to read the organization's members.

About

A collection of modules to validate GitHub resource configurations in Terraform.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages