Skip to content
Merged
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
18 changes: 12 additions & 6 deletions repository.tf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ resource "github_repository_ruleset" "default" {
}
}

bypass_actors {
actor_id = 15368 # Github Actions bot app ID was found here: https://api.github.com/apps/github-actions
actor_type = "Integration"
bypass_mode = "pull_request"
}

rules {
creation = true # restrict creation of default branch
update = false # allows PR merges on default branch
Expand All @@ -57,9 +63,6 @@ resource "github_repository_ruleset" "default" {
dismiss_stale_reviews_on_push = true
require_last_push_approval = each.value.required_approvals > 0
required_review_thread_resolution = true
bypass_pull_request_allowances {
users = ["github-actions[bot]"]
}
}
}
}
Expand All @@ -79,15 +82,18 @@ resource "github_repository_ruleset" "all" {
}
}

bypass_actors {
actor_id = 15368 # Github Actions bot app ID was found here: https://api.github.com/apps/github-actions
actor_type = "Integration"
bypass_mode = "pull_request"
}

rules {
creation = false # do not restrict creation
update = false
deletion = false
required_signatures = true
non_fast_forward = false
bypass_pull_request_allowances {
users = ["github-actions[bot]"]
}
}
}

Expand Down
Loading