-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
37 lines (32 loc) · 781 Bytes
/
main.tf
File metadata and controls
37 lines (32 loc) · 781 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
resource "github_organization_ruleset" "main_protection" {
name = "main-protection"
target = "branch"
enforcement = "active"
conditions {
ref_name {
include = var.protected_branches
exclude = []
}
repository_name {
include = var.protected_repos
exclude = []
}
}
rules {
deletion = true
non_fast_forward = true
required_linear_history = true
update = true
pull_request {
required_approving_review_count = 1
dismiss_stale_reviews_on_push = true
require_code_owner_review = true
require_last_push_approval = true
required_review_thread_resolution = true
}
}
bypass_actors {
actor_type = "OrganizationAdmin"
bypass_mode = "always"
}
}