From 3a752ff57e31cb61bd53593bcc1de9583fa9330d Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Mon, 16 Sep 2024 22:01:14 +0200 Subject: [PATCH] Use team IDs instead of names, #91 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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] } }