Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce quarkus-presidio #312

Merged
merged 1 commit into from
Dec 9, 2024
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
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ terraform-scripts/quarkus-playpen.tf @quarkiverse/qua
terraform-scripts/quarkus-playwright.tf @quarkiverse/quarkiverse-playwright
terraform-scripts/quarkus-poi.tf @quarkiverse/quarkiverse-poi
terraform-scripts/quarkus-pooled-jms.tf @quarkiverse/quarkiverse-pooled-jms
terraform-scripts/quarkus-presidio.tf @quarkiverse/quarkiverse-presidio
terraform-scripts/quarkus-prettytime.tf @quarkiverse/quarkiverse-prettytime
terraform-scripts/quarkus-primefaces.tf @quarkiverse/quarkiverse-primefaces
terraform-scripts/quarkus-pusher-beams.tf @quarkiverse/quarkiverse-pusher-beams
Expand Down
66 changes: 66 additions & 0 deletions terraform-scripts/quarkus-presidio.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Create repository
resource "github_repository" "quarkus_presidio" {
name = "quarkus-presidio"
description = "Data Protection and De-identification SDK"
homepage_url = "https://docs.quarkiverse.io/quarkus-presidio/dev/"
allow_update_branch = true
archive_on_destroy = true
delete_branch_on_merge = true
has_issues = true
vulnerability_alerts = true
topics = ["quarkus-extension", "presidio", "obfuscation"]
}

# Create team
resource "github_team" "quarkus_presidio" {
name = "quarkiverse-presidio"
description = "presidio 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_presidio" {
team_id = github_team.quarkus_presidio.id
repository = github_repository.quarkus_presidio.name
permission = "maintain"
}

# Add users to the team
resource "github_team_membership" "quarkus_presidio" {
for_each = { for tm in ["lordofthejars"] : tm => tm }
team_id = github_team.quarkus_presidio.id
username = each.value
role = "maintainer"
}

# Protect main branch using a ruleset
resource "github_repository_ruleset" "quarkus_presidio" {
name = "main"
repository = github_repository.quarkus_presidio.name
target = "branch"
enforcement = "active"

conditions {
ref_name {
include = ["~DEFAULT_BRANCH"]
exclude = []
}
}

bypass_actors {
actor_id = data.github_app.quarkiverse_ci.id
actor_type = "Integration"
bypass_mode = "always"
}

rules {
# Prevent force push
non_fast_forward = true
# Require pull request reviews before merging
pull_request {

}
}
}
Loading