diff --git a/README.md b/README.md index ada90c8..a7a82be 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ Available targets: | Name | Type | |------|------| -| [github_repository_webhook.default](https://registry.terraform.io/providers/hashicorp/github/3.0.0/docs/resources/repository_webhook) | resource | +| [github_repository_webhook.default](https://registry.terraform.io/providers/integrations/github/4.20.1/docs/resources/repository_webhook) | resource | ## Inputs diff --git a/docs/terraform.md b/docs/terraform.md index f355a06..6881039 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -23,7 +23,7 @@ | Name | Type | |------|------| -| [github_repository_webhook.default](https://registry.terraform.io/providers/hashicorp/github/3.0.0/docs/resources/repository_webhook) | resource | +| [github_repository_webhook.default](https://registry.terraform.io/providers/integrations/github/4.20.1/docs/resources/repository_webhook) | resource | ## Inputs diff --git a/main.tf b/main.tf index 3243747..35660ea 100644 --- a/main.tf +++ b/main.tf @@ -1,7 +1,7 @@ provider "github" { - token = var.github_token != "" ? var.github_token : null - organization = var.github_organization - base_url = var.github_base_url + token = var.github_token != "" ? var.github_token : null + owner = var.github_organization + base_url = var.github_base_url } resource "github_repository_webhook" "default" { diff --git a/versions.tf b/versions.tf index 9140f57..beef971 100644 --- a/versions.tf +++ b/versions.tf @@ -3,10 +3,8 @@ terraform { required_providers { github = { - source = "hashicorp/github" - # breaking changes both immediately before and after 3.0.0, pin exactly - # until ready to upgrade to integrations/github 4.2 or later - version = "3.0.0" + source = "integrations/github" + version = "4.20.1" } local = { source = "hashicorp/local"