diff --git a/main.tf b/main.tf index e531ca6..bd8f43a 100644 --- a/main.tf +++ b/main.tf @@ -144,7 +144,7 @@ resource "github_branch_protection" "repositories" { } restrict_pushes { - push_allowances = try(each.value.is_part_of_monorepo, false) ? [data.github_user.mage-os-ci.node_id] : each.value.teams + push_allowances = try(each.value.is_part_of_monorepo, false) ? [data.github_user.mage-os-ci.node_id] : [for team in each.value.teams : github_team.teams[team].node_id] } }