manage IUCLabs GitHub organisation
ci/woodpecker/pr/plan Pipeline failed
ci/woodpecker/pr/pre-commit Pipeline was successful

This commit is contained in:
2026-11-09 23:53:49 +11:00
parent 2795b3606a
commit e7eee508d7
14 changed files with 450 additions and 27 deletions
@@ -0,0 +1,36 @@
include "root" {
path = find_in_parent_folders("root.hcl")
expose = true
}
include "config" {
path = "${get_repo_root()}/config/config.hcl"
expose = true
}
locals {
owner = "IUCLabs"
github = include.config.locals.github
}
terraform {
source = "../../../modules/github_org"
}
generate "provider" {
path = "provider.tf"
if_exists = "overwrite"
contents = <<EOF
provider "github" {
owner = "${local.owner}"
app_auth {}
}
EOF
}
inputs = {
owner = local.owner
team = { for k, v in local.github.team : v.name => v if v.organisation == local.owner }
ruleset = { for k, v in local.github.ruleset : v.name => v if v.organisation == local.owner }
repository = { for k, v in local.github.repository : v.name => v if v.organisation == local.owner }
}