diff --git a/main.tf b/main.tf index e725af3..6283119 100644 --- a/main.tf +++ b/main.tf @@ -8,6 +8,7 @@ locals { "arnol377", "gomez385" ] + github_organization_teams = [ for team in data.github_organization_teams.teams : team.name ] } @@ -26,6 +27,7 @@ module "elastic_beanstalk" { enforce_prs = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } @@ -45,6 +47,7 @@ module "automation-repos" { enforce_prs = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } # terraform-repos @@ -62,6 +65,7 @@ module "csvd-org-management" { enforce_prs = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } module "external-actions" { @@ -78,6 +82,7 @@ module "external-actions" { enforce_prs = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } module "github-runner-images" { @@ -94,6 +99,7 @@ module "github-runner-images" { enforce_prs = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } @@ -114,6 +120,7 @@ module "centralized-actions" { collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers github_is_private = false + github_org_teams = local.github_organization_teams } # terraform-github-repo @@ -131,6 +138,7 @@ module "terraform-github-repo" { create_codeowners = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } @@ -151,6 +159,7 @@ module "elastic_beanstalk_java" { template_repo = "aws-beanstalk" template_repo_org = "CSVD" pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } module "elastic_beanstalk_php" { @@ -170,6 +179,7 @@ module "elastic_beanstalk_php" { template_repo = "aws-beanstalk" template_repo_org = "CSVD" pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } module "elastic_beanstalk_nodejs" { @@ -189,6 +199,7 @@ module "elastic_beanstalk_nodejs" { template_repo = "aws-beanstalk" template_repo_org = "CSVD" pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } @@ -207,6 +218,7 @@ module "test-statefile" { enforce_prs = false collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } @@ -227,6 +239,7 @@ module "elastic_beanstalk_docker" { template_repo = "aws-beanstalk" template_repo_org = "CSVD" pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } module "beanstalk-demo" { @@ -244,6 +257,7 @@ module "beanstalk-demo" { is_template = true collaborators = local.collaborators pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } module "setup_terraform" { @@ -259,6 +273,7 @@ module "setup_terraform" { create_codeowners = false enforce_prs = false collaborators = local.collaborators + github_org_teams = local.github_organization_teams } module "setup_node" { @@ -274,6 +289,7 @@ module "setup_node" { create_codeowners = false enforce_prs = false collaborators = local.collaborators + github_org_teams = local.github_organization_teams } # ghe-runner @@ -290,4 +306,5 @@ module "ghe_runners" { create_codeowners = false enforce_prs = false collaborators = local.collaborators + github_org_teams = local.github_organization_teams }