This module creates following resources.
github_organization_webhook(optional)github_repository_webhook(optional)
| Name | Version |
|---|---|
| terraform | >= 1.16 |
| github | >= 6.2 |
| telemetry | >= 0.2.0 |
| Name | Version |
|---|---|
| github | >= 6.2 |
No modules.
| Name | Type |
|---|---|
| github_organization_webhook.this | resource |
| github_repository_webhook.this | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| url | (Required) The URL of the webhook. | string |
n/a | yes |
| content_type | (Optional) The content type for the webhook payload. Valid values are either FORM or JSON. |
string |
"JSON" |
no |
| enabled | (Optional) Whether the webhook is active and should receive events. | bool |
true |
no |
| events | (Optional) A list of events which should trigger the webhook. Default is for only push event. |
set(string) |
[ |
no |
| repositories | (Optional) A list of repositories to create the webhook for. Create an organization-level webhook if you provide *. |
set(string) |
[ |
no |
| secret | (Optional) The shared secret for the webhook. | string |
"" |
no |
| ssl_enabled | (Optional) Whether to verify SSL certificates when delivering payloads. Default is true. | bool |
true |
no |
| telemetry | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. To send pseudonyms instead of identifying values such as the hostname and the Git remote, set pseudonymization_enabled to true. Pseudonyms are not anonymous; to keep data from being sent, disable its collector. The default configuration enables telemetry collection for machine, network, git, github, github actions, HCP Terraform, terraform, and toolchain. You can disable telemetry collection by setting enabled to false. telemetry block as defined below.(Optional) enabled - Whether to enable telemetry collection. Default is true.(Optional) capture_machine - Whether to capture machine information. Default is true.(Optional) capture_network - Whether to capture network information. Default is true.(Optional) capture_git - Whether to capture git information. Default is true.(Optional) capture_github - Whether to capture GitHub information. Default is true.(Optional) capture_github_actions - Whether to capture GitHub Actions information. Default is true.(Optional) capture_hcp_terraform - Whether to capture HCP Terraform information. Default is true.(Optional) capture_terraform - Whether to capture Terraform information. Default is true.(Optional) capture_toolchain - Whether to capture toolchain information. Default is true.(Optional) pseudonymization_enabled - Whether to enable pseudonymization of the captured data. Default is false. |
object({ |
{} |
no |
| Name | Description |
|---|---|
| content_type | The content type of the webhook payload. |
| enabled | Whether the webhook is enabled. |
| events | A list of events which trigger the webhook. |
| repositories | A list of repositories which the webhook is for. |
| ssl_enabled | Whether SSL verification is enabled. |
| url | The URL of the webhook. |