diff --git a/repolist.tf b/repolist.tf index 90297b0..7f8c645 100644 --- a/repolist.tf +++ b/repolist.tf @@ -16,3 +16,18 @@ module "repo_list" { github_org_teams = local.github_organization_teams } + +module "workspace" { + source = "HappyPathway/workspace/github" + for_each = tomap({ for repo in var.repolist : repo.name => repo }) + runner_group = "229685449397" + repo_name = each.value.name + repo_org = each.value.repo_org + reviewers = 1 + protected_branches = true + custom_branch_policies = true + environment = "default" + branch = { + name = "main" + } +}