-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
94 lines (90 loc) · 4.66 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
variable "organisation" {
description = "GitHub organization settings."
type = object({
name = string
company = string
description = string
email = optional(string, "")
billing_email = string
blog = optional(string, "")
twitter_username = optional(string, "")
location = optional(string, "")
has_organization_projects = optional(bool, false)
has_repository_projects = optional(bool, false)
default_repository_permission = optional(string, "read")
members_can_create_repositories = optional(bool, false)
members_can_create_public_repositories = optional(bool, false)
members_can_create_private_repositories = optional(bool, false)
members_can_create_internal_repositories = optional(bool, false)
members_can_create_pages = optional(bool, false)
members_can_create_public_pages = optional(bool, false)
members_can_create_private_pages = optional(bool, false)
members_can_fork_private_repositories = optional(bool, false)
web_commit_signoff_required = optional(bool, true)
advanced_security_enabled_for_new_repositories = optional(bool, true)
dependabot_alerts_enabled_for_new_repositories = optional(bool, true)
dependabot_security_updates_enabled_for_new_repositories = optional(bool, true)
dependency_graph_enabled_for_new_repositories = optional(bool, true)
secret_scanning_enabled_for_new_repositories = optional(bool, true)
secret_scanning_push_protection_enabled_for_new_repositories = optional(bool, true)
})
}
variable "action_permissions" {
description = "Organisational level Github Actions permissions"
type = object({
allowed_actions = optional(string, "selected")
enabled_repositories = optional(string, "all")
github_owned_allowed = optional(bool, true)
patterns_allowed = optional(list(string), [])
verified_allowed = optional(bool, false)
})
}
variable "teams" {
description = "Teams of the organisation"
type = map(object({
description = string
privacy = string
all_users_team = optional(bool, false)
reviewer_asssignment_algorithm = optional(string, "LOAD_BALANCE")
required_reviewer_count = optional(number, 1)
enable_pr_notification = optional(bool, true)
repo_permission = optional(string, "read")
repo_permission_override = optional(map(string), {})
}))
default = {}
}
variable "members" {
description = "Organisation members"
type = map(object({
role = string
blocked = optional(bool, false)
teams = optional(list(string), [])
}))
}
variable "repositories" {
description = "Organisation repositories"
type = map(object({
description = string
visibility = optional(string, "public")
has_issues = optional(bool, false)
has_downloads = optional(bool, false)
has_discussions = optional(bool, false)
has_projects = optional(bool, false)
has_wiki = optional(bool, false)
is_template = optional(bool, false)
allow_update_branch = optional(bool, false)
allow_merge_commit = optional(bool, false)
allow_squash_merge = optional(bool, true)
allow_rebase_merge = optional(bool, true)
allow_auto_merge = optional(bool, false)
archived = optional(bool, false)
delete_branch_on_merge = optional(bool, true)
default_branch = optional(string, "main")
homepage_url = optional(string, "")
topics = optional(list(string), [])
web_commit_signoff_required = optional(bool, true)
issue_labels = optional(map(string), {})
status_checks = optional(list(string), [])
}))
default = {}
}