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 +}