This provider manages GitHub resources — repositories, teams, branch protections, actions secrets/variables, organization settings, rulesets, deploy keys, webhooks, and more — using Terraform. It supports both GitHub.com and GitHub Enterprise Server via the REST and GraphQL APIs.
See the GitHub Provider page on the Terraform Registry for installation and documentation.
provider "github" {
owner = "my-org"
}
resource "github_repository" "example" {
name = "example-repo"
description = "Managed by Terraform"
visibility = "private"
}Detailed documentation for the GitHub provider can be found in the Terraform Registry.
For instructions on how to contribute to the GitHub Terraform provider, see the Contributing Guide.
This project uses Milestones to scope upcoming features and bug fixes. Issues that receive the most recent discussion or the most reactions will be more likely to be included in an upcoming release.
GitHub Support does not provide support for this integration. This is a community-supported project. GitHub's SDK team triages issues and PRs periodically.
