Skip to content

Commit

Permalink
Fix issue with new github node ID in branch protections
Browse files Browse the repository at this point in the history
  • Loading branch information
Elie committed Sep 28, 2021
1 parent 65352be commit 73db23a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}

0 comments on commit 73db23a

Please sign in to comment.