diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 7148ea9..7ddf9a6 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -77,6 +77,7 @@ terraform-scripts/quarkus-morphia.tf @quarkiverse/qua terraform-scripts/quarkus-mybatis.tf @quarkiverse/quarkiverse-mybatis terraform-scripts/quarkus-neo4j.tf @quarkiverse/quarkiverse-neo4j terraform-scripts/quarkus-ngrok.tf @quarkiverse/quarkiverse-ngrok +terraform-scripts/quarkus-oidc-proxy.tf @quarkiverse/quarkiverse-oidc-proxy terraform-scripts/quarkus-omnifaces.tf @quarkiverse/quarkiverse-omnifaces terraform-scripts/quarkus-openapi-generator.tf @quarkiverse/quarkiverse-openapi-generator terraform-scripts/quarkus-opencv.tf @quarkiverse/quarkiverse-opencv diff --git a/terraform-scripts/quarkus-oidc-proxy.tf b/terraform-scripts/quarkus-oidc-proxy.tf new file mode 100644 index 0000000..695ab19 --- /dev/null +++ b/terraform-scripts/quarkus-oidc-proxy.tf @@ -0,0 +1,36 @@ +# Create repository +resource "github_repository" "quarkus_oidc_proxy" { + name = "quarkus-oidc-proxy" + description = "OpenID Connect Proxy" + homepage_url = "https://some-url/" + allow_update_branch = true + archive_on_destroy = true + delete_branch_on_merge = true + has_issues = true + vulnerability_alerts = true + topics = ["quarkus-extension", "oidc", "proxy", "openid-connect", "oauth2"] +} + +# Create team +resource "github_team" "quarkus_oidc_proxy" { + name = "quarkiverse-oidc-proxy" + description = "oidc-proxy team" + create_default_maintainer = false + privacy = "closed" + parent_team_id = data.github_team.quarkiverse_members.id +} + +# Add team to repository +resource "github_team_repository" "quarkus_oidc_proxy" { + team_id = github_team.quarkus_oidc_proxy.id + repository = github_repository.quarkus_oidc_proxy.name + permission = "maintain" +} + +# Add users to the team +resource "github_team_membership" "quarkus_oidc_proxy" { + for_each = { for tm in ["sberyozkin"] : tm => tm } + team_id = github_team.quarkus_oidc_proxy.id + username = each.value + role = "maintainer" +}