From b967edd0003a79ae76eab82001665fb485763c62 Mon Sep 17 00:00:00 2001 From: Bryan Oliver Date: Fri, 15 Apr 2022 17:13:28 -0400 Subject: [PATCH] fix: use name instead of node_id node_id is currently broken, see gh issue https://github.com/integrations/terraform-provider-github/issues/908 Note that this means if the name changes the protection apply will break. --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index fcceb7a..7a07d7e 100644 --- a/main.tf +++ b/main.tf @@ -104,7 +104,7 @@ resource "github_branch_protection" "repos_branch_protection" { push_restrictions = [ data.github_user.oc-ci-robot.node_id, ] - repository_id = each.value.node_id + repository_id = each.value.name pattern = var.org_config.default_branch }