diff --git a/imported-repos.tf b/imported-repos.tf index 0fcd11e..fece64f 100644 --- a/imported-repos.tf +++ b/imported-repos.tf @@ -1,9 +1,9 @@ module "netbackup_automation_platform" { - source = "HappyPathway/gh-actions/importer" - version = "0.0.34" - github_repo_topics = [] + source = "HappyPathway/gh-actions/importer" + version = "0.0.34" + github_repo_topics = [] vulnerability_alerts = false - public_repo = { + public_repo = { default_branch = "main" clone_url = "https://github.com/VeritasOS/netbackup-automation-platform.git" } diff --git a/sandbox.tf b/sandbox.tf index 2e86f0e..e698194 100644 --- a/sandbox.tf +++ b/sandbox.tf @@ -20,43 +20,4 @@ module "sandbox" { enforce_prs = false collaborators = { "arnol377" : "admin" } github_org_teams = local.github_organization_teams - managed_extra_files = [ - { - path = ".github/workflows/terraform-plan.yaml" - content = templatefile( - "${path.module}/workflows/terraform-plan.yaml.tpl", - { - repo_name = each.value, - directory = null - git_owner = { - name = "arnol377" - email = "david.j.arnold.jr@census.gov" - } - } - ) - }, - { - path = ".github/workflows/terraform-apply.yaml" - content = templatefile( - "${path.module}/workflows/terraform-apply.yaml.tpl", - { - repo_name = each.value, - directory = null - } - ) - } - ] - secrets = [ - for secret in [for secret in local.secrets : secret if secret != "AWS_ACCESS_KEY_ID"] : - { - name = replace(secret, "GITHUB", "GH") - value = lookup(module.env_var, secret).value - } - ] - vars = [ - { - name = "AWS_ACCESS_KEY_ID" - value = lookup(module.env_var, "AWS_ACCESS_KEY_ID").value - } - ] } diff --git a/varfiles/default.tfvars b/varfiles/default.tfvars index 09651b8..44fca23 100644 --- a/varfiles/default.tfvars +++ b/varfiles/default.tfvars @@ -3,42 +3,42 @@ image_pipeline_workflows = { } repolist = [ - { - description = "Managing AWS CSVD Secrets" - repo_org = "CSVD" - name = "aws-secrets" - is_private = false - repo_topics = [ - "terraform-tools" - ] - }, - { - description = "Tools for managing Terraform" - repo_org = "CSVD" - name = "tf-tools" - is_private = false - repo_topics = [ - "terraform-tools" - ] - }, - { - description = "morpheus-repos" - repo_org = "CSVD" - name = "morpheus-repos" - is_private = false - repo_topics = [ - "morpheus" - ] - }, - { - description = "supervisord-conf" - repo_org = "CSVD" - name = "supervisord-conf" - is_private = false - repo_topics = [ - "supervisord", - "automation" - ] - } + { + description = "Managing AWS CSVD Secrets" + repo_org = "CSVD" + name = "aws-secrets" + is_private = false + repo_topics = [ + "terraform-tools" + ] + }, + { + description = "Tools for managing Terraform" + repo_org = "CSVD" + name = "tf-tools" + is_private = false + repo_topics = [ + "terraform-tools" + ] + }, + { + description = "morpheus-repos" + repo_org = "CSVD" + name = "morpheus-repos" + is_private = false + repo_topics = [ + "morpheus" + ] + }, + { + description = "supervisord-conf" + repo_org = "CSVD" + name = "supervisord-conf" + is_private = false + repo_topics = [ + "supervisord", + "automation" + ] + } ]