Skip to content

Commit

Permalink
fix: use name instead of node_id
Browse files Browse the repository at this point in the history
node_id is currently broken, see gh issue
integrations/terraform-provider-github#908

Note that this means if the name changes the protection apply will break.
  • Loading branch information
olivercodes authored Apr 15, 2022
1 parent 2bce930 commit b967edd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit b967edd

Please sign in to comment.