From 3724b99c1a24f5019d44209359d515a75b2973db Mon Sep 17 00:00:00 2001 From: David Arnold <10138997+djaboxx@users.noreply.github.com> Date: Tue, 14 May 2024 16:52:10 -0700 Subject: [PATCH] Create collaborators.tf --- collaborators.tf | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 collaborators.tf diff --git a/collaborators.tf b/collaborators.tf new file mode 100644 index 0000000..0c91fdd --- /dev/null +++ b/collaborators.tf @@ -0,0 +1,7 @@ +# Add a collaborator to a repository +resource "github_repository_collaborator" "collaborators" { + for_each = tomap(var.collaborators) + repository = github_repository.repo.name + username = each.key + permission = each.value +}