diff --git a/NOTICE b/NOTICE index bd489a0..056e453 100644 --- a/NOTICE +++ b/NOTICE @@ -1,4 +1,4 @@ -jackin-github-terraform +github-terraform Copyright 2026 Alexey Zhokhov This product includes software developed by Alexey Zhokhov diff --git a/README.md b/README.md index 48cd478..f9c6c5b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# jackin-github-terraform +# github-terraform Manages GitHub repository settings and branch/tag protection for the `jackin-project` organization: 9 repositories, each with repository merge diff --git a/REUSE.toml b/REUSE.toml index 216a0c8..472919d 100644 --- a/REUSE.toml +++ b/REUSE.toml @@ -1,8 +1,8 @@ version = 1 -SPDX-PackageName = "jackin-github-terraform" +SPDX-PackageName = "github-terraform" SPDX-PackageSupplier = "Alexey Zhokhov " -SPDX-PackageDownloadLocation = "https://github.com/jackin-project/jackin-github-terraform" +SPDX-PackageDownloadLocation = "https://github.com/jackin-project/github-terraform" SPDX-PackageOriginator = "Person: Alexey Zhokhov" # Declare copyright and license for the whole repository. Source files also diff --git a/checks.tf b/checks.tf index 73ce701..8a688a6 100644 --- a/checks.tf +++ b/checks.tf @@ -5,7 +5,7 @@ check "mandatory_target_repositories_present" { assert { - condition = toset(keys(var.repository_policies)) == toset(["homebrew-tap", "jackin", "jackin-agent-smith", "jackin-dev", "jackin-github-terraform", "jackin-marketplace", "jackin-role-action", "jackin-sentinel", "jackin-the-architect"]) + condition = toset(keys(var.repository_policies)) == toset(["homebrew-tap", "jackin", "jackin-agent-smith", "jackin-dev", "github-terraform", "jackin-marketplace", "jackin-role-action", "jackin-sentinel", "jackin-the-architect"]) error_message = "repository_policies must contain exactly the 9 managed jackin-project repositories (8 standard plus jackin-marketplace)." } } @@ -37,19 +37,19 @@ check "no_ci_exception_allowlist_is_explicit" { check "self_protection_enforced" { assert { - condition = contains(keys(var.repository_policies), "jackin-github-terraform") - error_message = "jackin-github-terraform must remain in the managed repository inventory; every inventory entry receives both rulesets." + condition = contains(keys(var.repository_policies), "github-terraform") + error_message = "github-terraform must remain in the managed repository inventory; every inventory entry receives both rulesets." } } check "jackin_terraform_required_checks_match_ci" { assert { - condition = contains(keys(var.repository_policies), "jackin-github-terraform") ? ( - length(var.repository_policies["jackin-github-terraform"].required_checks) == 2 && - contains(var.repository_policies["jackin-github-terraform"].required_checks, "Required") && - contains(var.repository_policies["jackin-github-terraform"].required_checks, "DCO") + condition = contains(keys(var.repository_policies), "github-terraform") ? ( + length(var.repository_policies["github-terraform"].required_checks) == 2 && + contains(var.repository_policies["github-terraform"].required_checks, "Required") && + contains(var.repository_policies["github-terraform"].required_checks, "DCO") ) : false - error_message = "jackin-github-terraform must require the current green CI aggregator (Required) and DCO checks." + error_message = "github-terraform must require the current green CI aggregator (Required) and DCO checks." } } diff --git a/imports.tf b/imports.tf index 49bf96b..46a3c62 100644 --- a/imports.tf +++ b/imports.tf @@ -62,18 +62,18 @@ import { } import { - to = module.repository_policy.github_repository.managed_settings["jackin-github-terraform"] - id = "jackin-github-terraform" + to = module.repository_policy.github_repository.managed_settings["github-terraform"] + id = "github-terraform" } import { - to = module.repository_policy.github_repository_ruleset.protect_main["jackin-github-terraform"] - id = "jackin-github-terraform:15175310" + to = module.repository_policy.github_repository_ruleset.protect_main["github-terraform"] + id = "github-terraform:15175310" } import { - to = module.repository_policy.github_repository_ruleset.protect_tags["jackin-github-terraform"] - id = "jackin-github-terraform:15179227" + to = module.repository_policy.github_repository_ruleset.protect_tags["github-terraform"] + id = "github-terraform:15179227" } import { diff --git a/variables.tf b/variables.tf index 6ea481f..27237f3 100644 --- a/variables.tf +++ b/variables.tf @@ -39,7 +39,7 @@ variable "repository_policies" { visibility = "public" required_checks = ["Required", "DCO"] } - "jackin-github-terraform" = { + "github-terraform" = { visibility = "public" required_checks = ["Required", "DCO"] }