diff --git a/main.tf b/main.tf index 6a4014a..9172634 100644 --- a/main.tf +++ b/main.tf @@ -124,7 +124,7 @@ resource "github_branch_protection" "repositories-release-please" { } resource "github_branch_protection" "repositories" { - for_each = var.repositories + for_each = { for key, value in var.repositories : key => value if try(value.archived, false) == false } repository_id = github_repository.repositories[each.key].node_id pattern = "*"