-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
109 lines (93 loc) · 2.89 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
variable "name" {
description = "Name of the repository."
type = string
}
variable "description" {
description = "Description of the repository."
type = string
default = ""
}
variable "private" {
description = "True if the repository is private."
type = bool
default = true
}
variable "default_branch" {
description = "Name of the repository's default branch."
type = string
default = "main"
}
variable "pr_review_required" {
description = "If true, an approving review is required to merge a PR."
type = bool
default = false
}
variable "gitignore_template" {
description = "Name of template from https://github.com/github/gitignore without the extension"
type = string
default = ""
}
variable "topics" {
description = "Topics to tag the repository with"
type = set(string)
default = []
}
variable "pull_collaborators" {
description = "Collaborators with pull access to the repository"
type = set(string)
default = []
}
variable "push_collaborators" {
description = "Collaborators with push access to the repository"
type = set(string)
default = []
}
variable "maintain_collaborators" {
description = "Collaborators with maintain access to the repository"
type = set(string)
default = []
}
variable "triage_collaborators" {
description = "Collaborators with triage access to the repository"
type = set(string)
default = []
}
variable "admin_collaborators" {
description = "Collaborators with admin access to the repository"
type = set(string)
default = []
}
variable "secrets" {
description = "GitHub Actions secrets"
type = set(object({ name = string, plaintext_value = string }))
default = []
}
variable "variables" {
description = "GitHub Actions variables"
type = set(object({ name = string, value = string }))
default = []
}
variable "environments" {
description = <<EOT
The repository's environments.
The repository's environments are represented as a map from environment name to
an object containing the environment's deployment policy, secrets, and variables.
An environment's secrets/variables are represented as a map from secret/variable
name to secret/variable value.
EOT
type = map(object({
deployment_policy = object({ branch_pattern = string })
secrets = set(object({ name = string, plaintext_value = string }))
variables = set(object({ name = string, value = string }))
}))
default = {}
}
variable "gha_access_level" {
description = <<EOT
Where the reusable GitHub Actions workflows in the repository may be used. One
of `none`, `user`, `organization`, or `enterprise`. See
https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_repository_access_level#access_level."
EOT
type = string
default = "none"
}