From 73db23a7c027b0b5137e6088d5aba75b8e55151d Mon Sep 17 00:00:00 2001 From: Elie Date: Tue, 28 Sep 2021 11:59:17 +0200 Subject: [PATCH] Fix issue with new github node ID in branch protections --- .../github/testdata/acc/github_branch_protection/terraform.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/resource/github/testdata/acc/github_branch_protection/terraform.tf b/pkg/resource/github/testdata/acc/github_branch_protection/terraform.tf index 879d76018..9af5243d3 100644 --- a/pkg/resource/github/testdata/acc/github_branch_protection/terraform.tf +++ b/pkg/resource/github/testdata/acc/github_branch_protection/terraform.tf @@ -25,7 +25,7 @@ resource "github_branch" "repo_toto" { resource "github_branch_protection" "main_repo" { count = 3 pattern = "main" - repository_id = github_repository.repo[count.index].node_id + repository_id = github_repository.repo[count.index].name enforce_admins = true required_status_checks { strict = false @@ -50,7 +50,7 @@ resource "github_branch_protection" "main_repo" { resource "github_branch_protection" "toto_repo" { count = 3 - repository_id = github_repository.repo[count.index].node_id + repository_id = github_repository.repo[count.index].name pattern = github_branch.repo_toto[count.index].branch enforce_admins = true }