Skip to content

Commit

Permalink
No variables
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoerr committed Jul 17, 2024
1 parent 4ea4368 commit 8897498
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,6 @@ resource "github_branch_protection" "repositories" {
repository_id = github_repository.repositories[each.key].node_id
pattern = "*"

codeowners = github_repository.repositories[each.key].teams
mage_os_ci_node = data.github_user.mage-os-ci.node_id

required_status_checks {
strict = true
contexts = []
Expand All @@ -147,7 +144,7 @@ resource "github_branch_protection" "repositories" {
}

restrict_pushes {
push_allowances = try(each.value.is_part_of_monorepo, false) ? [mage_os_ci_node] : codeowners
push_allowances = try(each.value.is_part_of_monorepo, false) ? [data.github_user.mage-os-ci.node_id] : github_repository.repositories[each.key].teams
}
}

Expand Down

0 comments on commit 8897498

Please sign in to comment.