Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pining provider Due to regresion #21

Merged
merged 1 commit into from
Jul 1, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 29 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,28 +120,43 @@ Available targets:
lint Lint terraform code

```
## Requirements

| Name | Version |
|------|---------|
| terraform | ~> 0.12.0 |
| github | ~> 2.8.0 |
| github | ~> 2.2 |
| local | ~> 1.2 |

## Providers

| Name | Version |
|------|---------|
| github | ~> 2.8.0 ~> 2.2 |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| active | Indicate of the webhook should receive events | bool | `true` | no |
| enabled | Whether or not to enable this module | bool | `true` | no |
| events | A list of events which should trigger the webhook. | list(string) | `<list>` | no |
| github_anonymous | Github Anonymous API (if `true`, token must not be set as GITHUB_TOKEN or `github_token`) | bool | `false` | no |
| github_base_url | GitHub target API endpoint | string | `https://api.github.com/` | no |
| github_organization | GitHub organization to use when creating webhooks | string | - | yes |
| github_repositories | List of repository names which should be associated with the webhook | list(string) | `<list>` | no |
| github_token | GitHub token used for API access. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | string | `` | no |
| webhook_content_type | Webhook Content Type (e.g. `json`) | string | `json` | no |
| webhook_insecure_ssl | Webhook Insecure SSL (e.g. trust self-signed certificates) | bool | `false` | no |
| webhook_secret | Webhook secret | string | `` | no |
| webhook_url | Webhook URL | string | - | yes |
|------|-------------|------|---------|:--------:|
| active | Indicate of the webhook should receive events | `bool` | `true` | no |
| enabled | Whether or not to enable this module | `bool` | `true` | no |
| events | A list of events which should trigger the webhook. | `list(string)` | <pre>[<br> "issue_comment",<br> "pull_request",<br> "pull_request_review",<br> "pull_request_review_comment"<br>]</pre> | no |
| github\_anonymous | Github Anonymous API (if `true`, token must not be set as GITHUB\_TOKEN or `github_token`) | `bool` | `false` | no |
| github\_base\_url | GitHub target API endpoint | `string` | `"https://api.github.com/"` | no |
| github\_organization | GitHub organization to use when creating webhooks | `string` | n/a | yes |
| github\_repositories | List of repository names which should be associated with the webhook | `list(string)` | `[]` | no |
| github\_token | GitHub token used for API access. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | `string` | `""` | no |
| webhook\_content\_type | Webhook Content Type (e.g. `json`) | `string` | `"json"` | no |
| webhook\_insecure\_ssl | Webhook Insecure SSL (e.g. trust self-signed certificates) | `bool` | `false` | no |
| webhook\_secret | Webhook secret | `string` | `""` | no |
| webhook\_url | Webhook URL | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| webhook_url | Webhook URL |
| webhook\_url | Webhook URL |



Expand Down
43 changes: 29 additions & 14 deletions docs/terraform.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,38 @@
## Requirements

| Name | Version |
|------|---------|
| terraform | ~> 0.12.0 |
| github | ~> 2.8.0 |
| github | ~> 2.2 |
| local | ~> 1.2 |

## Providers

| Name | Version |
|------|---------|
| github | ~> 2.8.0 ~> 2.2 |

## Inputs

| Name | Description | Type | Default | Required |
|------|-------------|:----:|:-----:|:-----:|
| active | Indicate of the webhook should receive events | bool | `true` | no |
| enabled | Whether or not to enable this module | bool | `true` | no |
| events | A list of events which should trigger the webhook. | list(string) | `<list>` | no |
| github_anonymous | Github Anonymous API (if `true`, token must not be set as GITHUB_TOKEN or `github_token`) | bool | `false` | no |
| github_base_url | GitHub target API endpoint | string | `https://api.github.com/` | no |
| github_organization | GitHub organization to use when creating webhooks | string | - | yes |
| github_repositories | List of repository names which should be associated with the webhook | list(string) | `<list>` | no |
| github_token | GitHub token used for API access. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | string | `` | no |
| webhook_content_type | Webhook Content Type (e.g. `json`) | string | `json` | no |
| webhook_insecure_ssl | Webhook Insecure SSL (e.g. trust self-signed certificates) | bool | `false` | no |
| webhook_secret | Webhook secret | string | `` | no |
| webhook_url | Webhook URL | string | - | yes |
|------|-------------|------|---------|:--------:|
| active | Indicate of the webhook should receive events | `bool` | `true` | no |
| enabled | Whether or not to enable this module | `bool` | `true` | no |
| events | A list of events which should trigger the webhook. | `list(string)` | <pre>[<br> "issue_comment",<br> "pull_request",<br> "pull_request_review",<br> "pull_request_review_comment"<br>]</pre> | no |
| github\_anonymous | Github Anonymous API (if `true`, token must not be set as GITHUB\_TOKEN or `github_token`) | `bool` | `false` | no |
| github\_base\_url | GitHub target API endpoint | `string` | `"https://api.github.com/"` | no |
| github\_organization | GitHub organization to use when creating webhooks | `string` | n/a | yes |
| github\_repositories | List of repository names which should be associated with the webhook | `list(string)` | `[]` | no |
| github\_token | GitHub token used for API access. If not provided, can be sourced from the `GITHUB_TOKEN` environment variable | `string` | `""` | no |
| webhook\_content\_type | Webhook Content Type (e.g. `json`) | `string` | `"json"` | no |
| webhook\_insecure\_ssl | Webhook Insecure SSL (e.g. trust self-signed certificates) | `bool` | `false` | no |
| webhook\_secret | Webhook secret | `string` | `""` | no |
| webhook\_url | Webhook URL | `string` | n/a | yes |

## Outputs

| Name | Description |
|------|-------------|
| webhook_url | Webhook URL |
| webhook\_url | Webhook URL |

6 changes: 6 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
terraform {
required_providers {
github = "~> 2.8.0"
}
}

provider "github" {
token = var.github_token != "" ? var.github_token : null
organization = var.github_organization
Expand Down