diff --git a/imported-repos.tf b/imported-repos.tf new file mode 100644 index 0000000..cfc8959 --- /dev/null +++ b/imported-repos.tf @@ -0,0 +1,14 @@ +module "netbackup_automation_platform" { + source = "HappyPathway/gh-actions/importer" + github_repo_topics = [] + vulnerability_alerts = false + public_repo = { + default_branch = "main" + clone_url = "https://github.com/VeritasOS/netbackup-automation-platform.git" + } + internal_repo = { + name = "netbackup-automation-platform" + org = "CSVD" + topics = ["automation-platform"] + } +} diff --git a/main.tf b/main.tf index a10c620..1205503 100644 --- a/main.tf +++ b/main.tf @@ -68,23 +68,6 @@ module "csvd-org-management" { github_org_teams = local.github_organization_teams } -module "external-actions" { - source = "HappyPathway/repo/github" - #github_codeowners_team = "CSVD" - github_repo_description = "Automation Repos for Morpheus POC" - repo_org = "CSVD" - name = "external-actions" - github_repo_topics = [ - "terraform" - ] - force_name = true - create_codeowners = false - enforce_prs = false - collaborators = local.collaborators - pull_request_bypassers = local.pull_request_bypassers - github_org_teams = local.github_organization_teams -} - module "github-runner-images" { source = "HappyPathway/repo/github" #github_codeowners_team = "CSVD" diff --git a/repolist.tf b/repolist.tf index 4c11376..bed6c3a 100644 --- a/repolist.tf +++ b/repolist.tf @@ -5,14 +5,12 @@ module "repo_list" { github_repo_description = each.value.description repo_org = each.value.repo_org name = each.value.name - github_repo_topics = [ - "terraform" - ] - is_template = each.value.is_template - force_name = true - create_codeowners = false - enforce_prs = each.value.enforce_prs - collaborators = local.collaborators - pull_request_bypassers = local.pull_request_bypassers - github_org_teams = local.github_organization_teams + github_repo_topics = each.value.repo_topics + is_template = each.value.is_template + force_name = true + create_codeowners = false + enforce_prs = each.value.enforce_prs + collaborators = local.collaborators + pull_request_bypassers = local.pull_request_bypassers + github_org_teams = local.github_organization_teams } diff --git a/varfiles/default.tfvars b/varfiles/default.tfvars index 6ad4a1d..9e37a68 100644 --- a/varfiles/default.tfvars +++ b/varfiles/default.tfvars @@ -7,11 +7,57 @@ repolist = [ description = "Managing AWS CSVD Secrets" repo_org = "CSVD" name = "aws-secrets" + repo_topics = [ + "terraform-tools" + ] }, { description = "Tools for managing Terraform" repo_org = "CSVD" name = "tf-tools" - } + repo_topics = [ + "terraform-tools" + ] + }, + { + description = "Composite Action for Terraform-Validate" + repo_org = "CSVD" + name = "terraform-validate" + repo_topics = [ + "composite-action" + ] + }, + { + description = "Composite Action for Terraform-Plan" + repo_org = "CSVD" + name = "terraform-plan" + repo_topics = [ + "composite-action" + ] + }, + { + description = "Composite Action for Terraform-Apply" + repo_org = "CSVD" + name = "terraform-apply" + repo_topics = [ + "composite-action" + ] + }, + { + description = "Composite Action for Terraform-Apply" + repo_org = "CSVD" + name = "terraform-init" + repo_topics = [ + "composite-action" + ] + }, + { + description = "Composite Action for AWS Auth" + repo_org = "CSVD" + name = "aws-auth" + repo_topics = [ + "composite-action" + ] + } ] diff --git a/variables.tf b/variables.tf index 82faa87..a8b1a49 100644 --- a/variables.tf +++ b/variables.tf @@ -10,6 +10,7 @@ variable "repolist" { is_template = optional(bool, false) create_codeowners = optional(bool, false) enforce_prs = optional(bool, false) + repo_topics = optional(list(string), ["terraform-workspace"]) })) default = [] }