-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
214 lines (178 loc) · 5.87 KB
/
variables.tf
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
################################################################
# Repository variables
################################################################
variable "name" {
description = "The name of the repository."
type = string
}
variable "description" {
description = "A description of the repository."
type = string
default = null
}
variable "homepage_url" {
description = "URL of a page describing the project."
type = string
default = null
}
variable "visibility" {
description = "Visibility of a project. Can be `public`, `private` or `internal` (GHE only)."
type = string
default = "public"
}
variable "is_template" {
description = "Set to `true` to tell GitHub that this is a template repository."
type = bool
default = false
}
variable "has_wiki" {
description = "Set to `true` to enable the GitHub Wiki features on the repository."
type = bool
default = false
}
variable "has_issues" {
description = "Set to `false` to disable the GitHub Issues features on the repository."
type = bool
default = true
}
variable "has_discussions" {
description = "Set to `true` to enable the GitHub Discussions features on the repository."
type = bool
default = false
}
variable "has_projects" {
description = "Set to `true` to enable the GitHub Projects features on the repository."
type = bool
default = false
}
variable "allow_merge_commit" {
description = "Set to `false` to disable merge commits on the repository."
type = bool
default = true
}
variable "merge_commit_title" {
description = "Can be `PR_TITLE` or `MERGE_MESSAGE` for a default merge commit title."
type = string
default = "MERGE_MESSAGE"
}
variable "merge_commit_message" {
description = "Can be `PR_BODY`, `PR_TITLE`, or `BLANK` for a default merge commit message."
type = string
default = "PR_TITLE"
}
variable "allow_squash_merge" {
description = "Set to `false` to disable squash merges on the repository."
type = bool
default = true
}
variable "squash_merge_commit_title" {
description = "Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE` for a default squash merge commit title."
type = string
default = "COMMIT_OR_PR_TITLE"
}
variable "squash_merge_commit_message" {
description = "Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK` for a default squash merge commit message."
type = string
default = "COMMIT_MESSAGES"
}
variable "allow_rebase_merge" {
description = "Set to `false` to disable rebase merges on the repository."
type = bool
default = true
}
variable "allow_update_branch" {
description = "Set to `false` to disable updating pull request branches."
type = bool
default = true
}
variable "allow_auto_merge" {
description = "Set to `true` to allow auto-merging pull requests on the repository."
type = bool
default = false
}
variable "delete_branch_on_merge" {
description = "Automatically delete head branch after a pull request is merged."
type = bool
default = false
}
variable "web_commit_signoff_required" {
description = "Require contributors to sign off on web-based commits."
type = bool
default = false
}
variable "auto_init" {
description = "Set to `true` to produce an initial commit in the repository."
type = bool
default = false
}
variable "gitignore_template" {
description = "Use the name of the template without the extension. For example, 'Haskell'."
type = string
default = null
}
variable "license_template" {
description = "Use the name of the template without the extension. For example, 'mit' or 'mpl-2.0'."
type = string
default = null
}
variable "archived" {
description = "Specifies if the repository should be archived."
type = bool
default = false
}
variable "archive_on_destroy" {
description = "Set to `true` to archive the repository instead of deleting on destroy."
type = bool
default = false
}
variable "vulnerability_alerts" {
description = "Set to `false` to disable security alerts for vulnerable dependencies."
type = bool
default = true
}
variable "ignore_vulnerability_alerts_during_read" {
description = "Set to `true` to not call the vulnerability alerts endpoint so the resource can also be used without admin permissions during read."
type = bool
default = null
}
variable "topics" {
description = "The list of topics of the repository."
type = set(string)
default = []
}
################################################################
# Branches variables
################################################################
variable "default_branch" {
description = "The name of the default branch of the repository. Default branch can only be created on non-empty repositories."
type = string
default = null
}
variable "default_branch_rename" {
description = "Indicate if it should rename the branch rather than use an existing default branch."
type = bool
default = false
}
variable "branches" {
description = "The list of a branches of the repository. Branches can only be created on non-empty repositories."
type = list(map(string))
default = []
}
################################################################
# Actions secret and variable variables
################################################################
variable "actions_encrypted_secrets" {
description = "Configuring encrypted actions secrets."
type = map(string)
default = {}
}
variable "actions_plaintext_secrets" {
description = "Configuring plaintext actions secrets."
type = map(string)
default = {}
}
variable "actions_variables" {
description = "Configuring actions variables."
type = map(string)
default = {}
}