From 75e58777eb1c8437e08278d70d5d0dd2a70a6219 Mon Sep 17 00:00:00 2001 From: Simon Sprankel Date: Mon, 17 Jun 2024 07:56:36 +0200 Subject: [PATCH] Ignore archived repos, #88 --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = "*"