github_organization_webhook

This resource allows you to create and manage webhooks for GitHub organization.

Example Usage

resource "github_organization_webhook" "foo" {
  name = "web"

  configuration {
    url          = "https://google.de/"
    content_type = "form"
    insecure_ssl = false
  }

  active = false

  events = ["issues"]
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following additional attributes are exported:

Import

Organization webhooks can be imported using the id of the webhook. The id of the webhook can be found in the URL of the webhook. For example, "https://github.com/organizations/foo-org/settings/hooks/123456789".

$ terraform import github_organization_webhook.terraform 123456789

If secret is populated in the webhook's configuration, the value will be imported as "**".