Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion NOTICE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
jackin-github-terraform
github-terraform
Copyright 2026 Alexey Zhokhov

This product includes software developed by Alexey Zhokhov
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version = 1

SPDX-PackageName = "jackin-github-terraform"
SPDX-PackageName = "github-terraform"
SPDX-PackageSupplier = "Alexey Zhokhov <alexey@zhokhov.com>"
SPDX-PackageDownloadLocation = "https://github.com/jackin-project/jackin-github-terraform"
SPDX-PackageDownloadLocation = "https://github.com/jackin-project/github-terraform"
Comment thread
donbeave marked this conversation as resolved.
Resolved
SPDX-PackageOriginator = "Person: Alexey Zhokhov"

# Declare copyright and license for the whole repository. Source files also
Expand Down
16 changes: 8 additions & 8 deletions checks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)."
}
}
Expand Down Expand Up @@ -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."
}
}

Expand Down
12 changes: 6 additions & 6 deletions imports.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ variable "repository_policies" {
visibility = "public"
required_checks = ["Required", "DCO"]
}
"jackin-github-terraform" = {
"github-terraform" = {
visibility = "public"
required_checks = ["Required", "DCO"]
}
Expand Down