-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvariables.tf
More file actions
94 lines (79 loc) · 2.03 KB
/
Copy pathvariables.tf
File metadata and controls
94 lines (79 loc) · 2.03 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
variable "name" {
description = "The name of the branch protection rule"
type = string
}
variable "customer" {
description = "Customer for the current deployment"
type = string
default = ""
}
variable "tags" {
description = "Default tags to add to resources"
type = map(any)
default = {}
}
# module specific variables
variable "repository_id" {
description = "Name or id of the GitHub repository to protect"
type = string
}
variable "branch_pattern" {
description = "Branch name pattern to protect"
type = string
default = "main"
}
variable "enforce_admins" {
description = "Enforce required status checks for repository administrators"
type = bool
default = true
}
variable "required_status_checks" {
description = "Require status checks to pass before merging"
type = any
default = {}
}
variable "required_pull_request_reviews" {
description = "Require pull request reviews before merging"
type = any
default = {}
}
variable "restrict_pushes" {
description = "Restrict who can push to the branch"
type = any
default = {}
}
variable "force_push_bypassers" {
description = "List of actor IDs that can bypass force push restrictions"
type = any
default = []
}
variable "require_signed_commits" {
description = "Require commits to be signed"
type = bool
default = true
}
variable "required_linear_history" {
description = "Enforce a linear commit history"
type = bool
default = true
}
variable "require_conversation_resolution" {
description = "Require conversation resolution before merging"
type = bool
default = true
}
variable "allows_deletions" {
description = "Allow branch deletions"
type = bool
default = false
}
variable "allows_force_pushes" {
description = "Allow force pushes"
type = bool
default = false
}
variable "lock_branch" {
description = "Lock the branch"
type = bool
default = false
}