forked from cloudposse/terraform-github-repository-webhooks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
58 lines (49 loc) · 1.53 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
variable "github_token" {
type = string
default = ""
description = "GitHub token used for API access. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable"
}
variable "github_organization" {
type = string
description = "GitHub organization to use when creating webhooks"
}
variable "github_base_url" {
type = string
description = "GitHub target API endpoint"
default = "https://api.github.com/"
}
variable "github_repositories" {
type = list(string)
description = "List of repository names which should be associated with the webhook"
default = []
}
variable "webhook_url" {
type = string
description = "Webhook URL"
}
variable "webhook_content_type" {
type = string
description = "Webhook Content Type (e.g. `json`)"
default = "json"
}
variable "webhook_secret" {
type = string
description = "Webhook secret"
default = ""
}
variable "webhook_insecure_ssl" {
type = bool
description = "Webhook Insecure SSL (e.g. trust self-signed certificates)"
default = false
}
variable "active" {
type = bool
description = "Indicate of the webhook should receive events"
default = true
}
variable "events" {
# Full list of events available here: https://developer.github.com/v3/activity/events/types/
type = list(string)
description = "A list of events which should trigger the webhook."
default = ["issue_comment", "pull_request", "pull_request_review", "pull_request_review_comment"]
}