Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

webhook

This module creates following resources.

  • github_organization_webhook (optional)
  • github_repository_webhook (optional)

Requirements

Name Version
terraform >= 1.9
github >= 6.2

Providers

Name Version
github 6.2.2

Modules

No modules.

Resources

Name Type
github_organization_webhook.this resource
github_repository_webhook.this resource

Inputs

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 to activate the webhook 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)
[
"push"
]
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

Outputs

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.