Skip to content

Commit

Permalink
merging
Browse files Browse the repository at this point in the history
  • Loading branch information
arnol377 committed Oct 10, 2024
2 parents d6e9731 + 28bd095 commit ced57e3
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 30 deletions.
5 changes: 5 additions & 0 deletions imported-repos.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module "netbackup_automation_platform" {
source = "HappyPathway/gh-actions/importer"
version = "0.0.34"
github_repo_topics = []
vulnerability_alerts = false
public_repo = {
Expand All @@ -10,5 +11,9 @@ module "netbackup_automation_platform" {
name = "netbackup-automation-platform"
org = "CSVD"
topics = ["automation-platform"]
collaborators = {
"littl381" = "admin"
"arnol377" = "admin"
}
}
}
2 changes: 2 additions & 0 deletions repolist.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,7 @@ module "repo_list" {
enforce_prs = each.value.enforce_prs
collaborators = local.collaborators
pull_request_bypassers = local.pull_request_bypassers
github_is_private = each.value.is_private
github_org_teams = local.github_organization_teams
}

13 changes: 13 additions & 0 deletions sandbox.tf
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,17 @@ module "sandbox" {
)
}
]
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
}
]
}
41 changes: 11 additions & 30 deletions varfiles/default.tfvars
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ repolist = [
description = "Managing AWS CSVD Secrets"
repo_org = "CSVD"
name = "aws-secrets"
is_private = false
repo_topics = [
"terraform-tools"
]
Expand All @@ -15,48 +16,28 @@ repolist = [
description = "Tools for managing Terraform"
repo_org = "CSVD"
name = "tf-tools"
is_private = false
repo_topics = [
"terraform-tools"
]
},
{
description = "Composite Action for Terraform-Validate"
description = "morpheus-repos"
repo_org = "CSVD"
name = "terraform-validate"
name = "morpheus-repos"
is_private = false
repo_topics = [
"composite-action"
"morpheus"
]
},
{
description = "Composite Action for Terraform-Plan"
description = "supervisord-conf"
repo_org = "CSVD"
name = "terraform-plan"
name = "supervisord-conf"
is_private = false
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"
"supervisord",
"automation"
]
}
]
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ variable "repolist" {
create_codeowners = optional(bool, false)
enforce_prs = optional(bool, false)
repo_topics = optional(list(string), ["terraform-workspace"])
is_private = optional(bool, false)
}))
default = []
}

0 comments on commit ced57e3

Please sign in to comment.