88 [ ![ Build Status] ( https://travis-ci.org/cloudposse/terraform-github-repository-webhooks.svg?branch=master )] ( https://travis-ci.org/cloudposse/terraform-github-repository-webhooks ) [ ![ Latest Release] ( https://img.shields.io/github/release/cloudposse/terraform-github-repository-webhooks.svg )] ( https://github.com/cloudposse/terraform-github-repository-webhooks/releases/latest ) [ ![ Slack Community] ( https://slack.cloudposse.com/badge.svg )] ( https://slack.cloudposse.com )
99
1010
11- Terraform module to provision webhooks on a set of GitHub repositories.
11+ Terraform module to provision webhooks on a set of GitHub repositories.
1212This is useful if you need to register a webhook en masse across dozens of repositories.
1313
1414
@@ -54,13 +54,13 @@ Create a GitHub Personal Access Token that has `admin:repo_hook` for full contro
5454
5555``` hcl
5656module "github_webhooks" {
57- source = "git::https://github.com/cloudposse/terraform-github-repository-webhooks.git?ref=master"
58- github_organization = "cloudposse"
59- github_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
60- github_repositories = "geodesic"
61- webhook_url = "https://atlantis.prod.company.com/"
62- content_type = "application/json"
63- events = ["issues"]
57+ source = "git::https://github.com/cloudposse/terraform-github-repository-webhooks.git?ref=master"
58+ github_organization = "cloudposse"
59+ github_token = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
60+ github_repositories = "geodesic"
61+ webhook_url = "https://atlantis.prod.company.com/"
62+ webhook_content_type = "application/json"
63+ events = ["issues"]
6464}
6565```
6666
@@ -83,12 +83,12 @@ Available targets:
8383
8484| Name | Description | Type | Default | Required |
8585| ------| -------------| :----:| :-----:| :-----:|
86- | active | Indicate of the webhook should receive events. | string | ` true ` | no |
86+ | active | Indicate of the webhook should receive events | string | ` true ` | no |
8787| enabled | Whether or not to enable this module | string | ` true ` | no |
8888| events | A list of events which should trigger the webhook. | list | ` <list> ` | no |
89- | github_organization | GitHub organization to use when creating webhook | string | - | yes |
89+ | github_organization | GitHub organization to use when creating webhooks | string | - | yes |
9090| github_repositories | List of repository names which should be associated with the webhook | list | ` <list> ` | no |
91- | github_token | GitHub token used for API access | string | - | yes |
91+ | github_token | GitHub token used for API access. If not provided, can be sourced from the ` GITHUB_TOKEN ` environment variable | string | `` | no |
9292| webhook_content_type | Webhook Content Type (E.g. json) | string | ` json ` | no |
9393| webhook_insecure_ssl | Webhook Insecure SSL (E.g. trust self-signed certificates) | string | ` false ` | no |
9494| webhook_secret | Webhook secret | string | `` | no |
0 commit comments