Add bypass_actors support to GitHub rulesets
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/plan Pipeline was successful

This commit is contained in:
2026-11-17 23:40:53 +11:00
parent f220df0f59
commit 6ab490c23c
7 changed files with 107 additions and 3 deletions
@@ -4,6 +4,15 @@ resource "github_repository_ruleset" "this" {
target = var.ruleset.target
enforcement = var.ruleset.enforcement
dynamic "bypass_actors" {
for_each = var.ruleset.bypass_actors
content {
actor_type = bypass_actors.value.actor_type
actor_id = bypass_actors.value.actor_id
bypass_mode = bypass_actors.value.bypass_mode
}
}
dynamic "conditions" {
for_each = var.ruleset.conditions[*]
content {
@@ -4,7 +4,12 @@ variable "repository" {
variable "ruleset" {
type = object({
name = string
name = string
bypass_actors = list(object({
actor_type = string
actor_id = number
bypass_mode = string
}))
target = string
enforcement = string
conditions = object({
@@ -2,6 +2,10 @@ output "slug" {
value = github_team.this.slug
}
output "id" {
value = github_team.this.id
}
output "membership" {
value = github_team_membership.this
}