From e611747650cf484ad7873c50b6bdff3869020ee7 Mon Sep 17 00:00:00 2001 From: Byungjin Park Date: Sun, 11 Oct 2026 02:12:31 +0900 Subject: [PATCH] feat: support pseudonymization and HCP Terraform metadata in telemetry --- modules/enterprise-organization/README.md | 4 ++-- modules/enterprise-organization/telemetry.tf | 15 ++++++++++++++- modules/enterprise-organization/versions.tf | 2 +- modules/org-organization/README.md | 4 ++-- modules/org-organization/telemetry.tf | 15 ++++++++++++++- modules/org-organization/versions.tf | 2 +- modules/org-ruleset/README.md | 4 ++-- modules/org-ruleset/telemetry.tf | 15 ++++++++++++++- modules/org-ruleset/versions.tf | 2 +- modules/org-team/README.md | 4 ++-- modules/org-team/telemetry.tf | 15 ++++++++++++++- modules/org-team/versions.tf | 2 +- modules/project/README.md | 4 ++-- modules/project/telemetry.tf | 15 ++++++++++++++- modules/project/versions.tf | 2 +- modules/repository-custom-property/README.md | 4 ++-- modules/repository-custom-property/telemetry.tf | 15 ++++++++++++++- modules/repository-custom-property/versions.tf | 2 +- modules/repository-environment/README.md | 4 ++-- modules/repository-environment/telemetry.tf | 15 ++++++++++++++- modules/repository-environment/versions.tf | 2 +- modules/repository/README.md | 4 ++-- modules/repository/telemetry.tf | 15 ++++++++++++++- modules/repository/versions.tf | 2 +- modules/webhook/README.md | 4 ++-- modules/webhook/telemetry.tf | 15 ++++++++++++++- modules/webhook/versions.tf | 2 +- 27 files changed, 153 insertions(+), 36 deletions(-) diff --git a/modules/enterprise-organization/README.md b/modules/enterprise-organization/README.md index def9bc5..ed6ff43 100644 --- a/modules/enterprise-organization/README.md +++ b/modules/enterprise-organization/README.md @@ -12,7 +12,7 @@ This module creates following resources. | ---- | ------- | | [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.2 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -41,7 +41,7 @@ No modules. | [description](#input\_description) | (Optional) The description of the organization. | `string` | `"Managed by Terraform."` | no | | [display\_name](#input\_display\_name) | (Optional) The display name of the organization. If not set, the `name` will be used as the `display_name`. | `string` | `""` | no | | [owners](#input\_owners) | (Optional) A list of usernames to add users as `owner` role. | `set(string)` | `[]` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | ## Outputs diff --git a/modules/enterprise-organization/telemetry.tf b/modules/enterprise-organization/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/enterprise-organization/telemetry.tf +++ b/modules/enterprise-organization/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.2 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -44,7 +44,7 @@ No modules. | [members](#input\_members) | (Optional) A list of usernames to add users as `member` role. When applied, an invitation will be sent to the user to become a member of the organization. | `set(string)` | `[]` | no | | [owners](#input\_owners) | (Optional) A list of usernames to add users as `admin` role. When applied, an invitation will be sent to the user to become an owner of the organization. | `set(string)` | `[]` | no | | [security\_manager\_teams](#input\_security\_manager\_teams) | (Optional) A list of team slugs to add as security manager teams. Grant a team permission to manage security alerts and settings across the organization. This team will also be granted read access to all repositories. | `set(string)` | `[]` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | ## Outputs diff --git a/modules/org-organization/telemetry.tf b/modules/org-organization/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/org-organization/telemetry.tf +++ b/modules/org-organization/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.11 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -39,7 +39,7 @@ No modules. | [rules](#input\_rules) | (Optional) A configuration for the rules enforced by the ruleset. `rules` block as defined below.
(Optional) `creation` - Whether to restrict the creation of matching refs. Defaults to `false`.
(Optional) `update` - Whether to restrict updates to matching refs. Defaults to `false`.
(Optional) `deletion` - Whether to restrict deletion of matching refs. Defaults to `false`.
(Optional) `required_linear_history` - Whether to require a linear commit history, preventing merge commits. Defaults to `false`.
(Optional) `required_signatures` - Whether to require commits pushed to matching refs to have verified signatures. Defaults to `false`.
(Optional) `non_fast_forward` - Whether to block force pushes to matching refs. Defaults to `false`.
(Optional) `pull_request` - A configuration to require a pull request before merging. `pull_request` block as defined below.
(Optional) `dismiss_stale_reviews_on_push` - Whether to dismiss approving reviews when new commits are pushed. Defaults to `false`.
(Optional) `require_code_owner_review` - Whether to require review from code owners. Defaults to `false`.
(Optional) `require_last_push_approval` - Whether the most recent push must be approved by someone other than its author. Defaults to `false`.
(Optional) `required_approving_review_count` - The number of approving reviews required before merging. Defaults to `0`.
(Optional) `required_review_thread_resolution` - Whether all review conversations must be resolved before merging. Defaults to `false`.
(Optional) `required_status_checks` - A configuration to require status checks to pass before merging. `required_status_checks` block as defined below.
(Optional) `checks` - A list of status checks that must pass. Each item of `checks` block as defined below.
(Required) `context` - The name of the required status check.
(Optional) `integration_id` - The ID of the GitHub App that provides the status check. Use `0` for checks not provided by an app.
(Optional) `strict_required_status_checks_policy` - Whether the matching ref must be up to date with the base branch before merging. Defaults to `false`.
(Optional) `required_workflows` - A configuration to require GitHub Actions workflows to pass before merging. `required_workflows` block as defined below.
(Required) `workflows` - A list of workflows that must pass. Each item of `workflows` block as defined below.
(Required) `repository_id` - The ID of the repository where the workflow is defined.
(Required) `path` - The path to the workflow file (e.g., `.github/workflows/scan.yaml`).
(Optional) `ref` - The ref of the workflow file. Defaults to the repository's default branch.
(Optional) `do_not_enforce_on_create` - Whether to skip enforcing the workflows when a matching ref is created. Defaults to `false`.
(Optional) `required_code_scanning` - A configuration to require code scanning results before merging. `required_code_scanning` block as defined below.
(Required) `tools` - A list of code scanning tools that must run. Each item of `tools` block as defined below.
(Required) `tool` - The name of the code scanning tool (e.g., `CodeQL`).
(Required) `alerts_threshold` - The severity level at which code scanning alerts block merging. Can be one of `none`, `errors`, `errors_and_warnings`, or `all`.
(Required) `security_alerts_threshold` - The severity level at which code scanning security alerts block merging. Can be one of `none`, `critical`, `high_or_higher`, `medium_or_higher`, or `all`.
(Optional) `branch_name_pattern` - A configuration to enforce a naming pattern on branches. Only valid when `target` is `branch`. `pattern` block as defined below.
(Optional) `tag_name_pattern` - A configuration to enforce a naming pattern on tags. Only valid when `target` is `tag`. `pattern` block as defined below.
(Optional) `commit_message_pattern` - A configuration to enforce a pattern on commit messages. `pattern` block as defined below.
(Optional) `commit_author_email_pattern` - A configuration to enforce a pattern on commit author emails. `pattern` block as defined below.
(Optional) `committer_email_pattern` - A configuration to enforce a pattern on committer emails. `pattern` block as defined below.
(Required) `operator` - How the pattern is matched. Can be one of `starts_with`, `ends_with`, `contains`, or `regex`.
(Required) `pattern` - The pattern to match against.
(Optional) `name` - A display name for the rule.
(Optional) `negate` - Whether to negate the match (i.e., fail if the pattern matches). Defaults to `false`. |
object({
creation = optional(bool, false)
update = optional(bool, false)
deletion = optional(bool, false)
required_linear_history = optional(bool, false)
required_signatures = optional(bool, false)
non_fast_forward = optional(bool, false)

pull_request = optional(object({
dismiss_stale_reviews_on_push = optional(bool, false)
require_code_owner_review = optional(bool, false)
require_last_push_approval = optional(bool, false)
required_approving_review_count = optional(number, 0)
required_review_thread_resolution = optional(bool, false)
}))

required_status_checks = optional(object({
checks = optional(list(object({
context = string
integration_id = optional(number, 0)
})), [])
strict_required_status_checks_policy = optional(bool, false)
}))

required_workflows = optional(object({
workflows = list(object({
repository_id = number
path = string
ref = optional(string)
}))
do_not_enforce_on_create = optional(bool, false)
}))

required_code_scanning = optional(object({
tools = list(object({
tool = string
alerts_threshold = string
security_alerts_threshold = string
}))
}))

branch_name_pattern = optional(object({
operator = string
pattern = string
name = optional(string)
negate = optional(bool, false)
}))
tag_name_pattern = optional(object({
operator = string
pattern = string
name = optional(string)
negate = optional(bool, false)
}))
commit_message_pattern = optional(object({
operator = string
pattern = string
name = optional(string)
negate = optional(bool, false)
}))
commit_author_email_pattern = optional(object({
operator = string
pattern = string
name = optional(string)
negate = optional(bool, false)
}))
committer_email_pattern = optional(object({
operator = string
pattern = string
name = optional(string)
negate = optional(bool, false)
}))
})
| `{}` | no | | [status](#input\_status) | (Optional) The status (enforcement level) of the ruleset. Can be one of `ACTIVE`, `EVALUATE`, or `DISABLED`. Use `EVALUATE` to monitor (dry-run) which actions would be blocked without actually blocking them. Defaults to `ACTIVE`. | `string` | `"ACTIVE"` | no | | [target](#input\_target) | (Optional) The target of the ruleset. Can be one of `branch`, `tag`, or `push`. Defaults to `branch`. | `string` | `"branch"` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | ## Outputs diff --git a/modules/org-ruleset/telemetry.tf b/modules/org-ruleset/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/org-ruleset/telemetry.tf +++ b/modules/org-ruleset/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.11 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -53,7 +53,7 @@ No modules. | [membership\_sync\_enabled](#input\_membership\_sync\_enabled) | (Optional) Whether to sync the members of the team. Members added outside of the Terraform code will be removed. Defaults to `false`. | `bool` | `false` | no | | [notification\_enabled](#input\_notification\_enabled) | (Optional) Whether to enable notifications for the team. Defaults to `true`. | `bool` | `true` | no | | [parent\_id](#input\_parent\_id) | (Optional) The ID of the parent team, if this is a nested team. | `string` | `null` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | ## Outputs diff --git a/modules/org-team/telemetry.tf b/modules/org-team/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/org-team/telemetry.tf +++ b/modules/org-team/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.2 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -42,7 +42,7 @@ No modules. | [description](#input\_description) | (Optional) A description of the project. | `string` | `"Managed by Terraform."` | no | | [level](#input\_level) | (Optional) Choose to create a project for organization or repository. Valid values are `ORGANIAZTION` and `REPOSITORY`. The default is `ORGANIZATION` level, so the project is managed by organization level. | `string` | `"ORGANIZATION"` | no | | [repository](#input\_repository) | (Optional) The repository to create the project for. Only need when `level` is `REPOSITORY`. | `string` | `null` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | ## Outputs diff --git a/modules/project/telemetry.tf b/modules/project/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/project/telemetry.tf +++ b/modules/project/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.11 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -39,7 +39,7 @@ No modules. | [description](#input\_description) | (Optional) The description of the custom property. | `string` | `""` | no | | [editable\_by](#input\_editable\_by) | (Optional) Who can edit the values of the custom property. Can be one of `ORG_ACTORS` or `ORG_AND_REPO_ACTORS`. When set to `ORG_ACTORS` (the default), only organization owners can edit the property values on repositories. When set to `ORG_AND_REPO_ACTORS`, both organization owners and repository administrators with the custom properties permission can edit the values. | `string` | `"ORG_ACTORS"` | no | | [required](#input\_required) | (Optional) Whether the custom property is required. Defaults to `false`. | `bool` | `false` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | | [type](#input\_type) | (Required) The type of the custom property. Can be one of `STRING`, `SINGLE_SELECT`, `MULTI_SELECT`, or `BOOL`. Defaults to `STRING`. | `string` | `"STRING"` | no | ## Outputs diff --git a/modules/repository-custom-property/telemetry.tf b/modules/repository-custom-property/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/repository-custom-property/telemetry.tf +++ b/modules/repository-custom-property/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.11 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -49,7 +49,7 @@ No modules. | [deployment\_policy](#input\_deployment\_policy) | (Optional) A configuration for deployment policy. `deployment_policy` block as defined below.
(Optional) `restriction` - The type of deployment restriction. Valid values are `NONE`, `PROTECTED_BRANCH`, or `CUSTOM`. Defaults to `NONE`.
(Optional) `branches` - A set of branch name patterns to restrict deployments to when the restriction type is `CUSTOM`.
(Optional) `tags` - A set of tag name patterns to restrict deployments to when the restriction type is `CUSTOM`. |
object({
restriction = optional(string, "NONE")
branches = optional(set(string), [])
tags = optional(set(string), [])
})
| `{}` | no | | [reviewers](#input\_reviewers) | (Optional) A list of reviewers who may review jobs that reference the environment. Up to 6 reviewers can be added to an environment. Each item of `reviewers` block as defined below.
(Required) `type` - The type of the reviewer. Valid values are `USER` or `TEAM`.
(Required) `name` - The username of the reviewer if the type is `USER`, or the team slug if the type is `TEAM`. |
list(object({
type = string
name = string
}))
| `[]` | no | | [secrets](#input\_secrets) | (Optional) A map of GitHub Actions secrets to set for the environment. Currently, all values will be ignored and treated as placeholders. You should mange the secrets manually in GitHub after the environment is created. Defaults to `{}`. | `map(string)` | `{}` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | | [variables](#input\_variables) | (Optional) A map of GitHub Actions variables to set for the environment. Defaults to `{}`. | `map(string)` | `{}` | no | | [wait\_timer](#input\_wait\_timer) | (Optional) The amount of time in minutes to wait before allowing deployments to proceed. The default value is `0`. | `number` | `0` | no | diff --git a/modules/repository-environment/telemetry.tf b/modules/repository-environment/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/repository-environment/telemetry.tf +++ b/modules/repository-environment/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.2 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -76,7 +76,7 @@ This module creates following resources. | [issue\_labels](#input\_issue\_labels) | (Optional) A list of issue labels for the repository. Each member of `issue_labels` block as defined below.
(Required) `name` - The name of the label.
(Required) `color` - A 6 character hex code, without the leading #, identifying the color of the label.
(Optional) `description` - A short description of the label. |
set(object({
name = string
color = string
description = optional(string, "Managed by Terraform.")
}))
| `[]` | no | | [pages](#input\_pages) | (Optional) A configuration of GitHub Pages for the repository. `pages` block as defined below.
(Optional) `enabled` - Whether to enable GitHub Pages for the repository. GitHub Pages is designed to host your personal, organization, or project pages from a GitHub repository. Defaults to `false`.
(Optional) `source` - A configuration of the repository source files for the site. `source` block as defined below.
(Optional) `branch` - The repository branch used to publish the site's source files. Defaults to `gh-pages` branch.
(Optional) `path` - The repository directory path from which the site publishes. Defaults to `/`.
(Optional) `cname` - The custom domain for the repository. This can only be set after the repository has been created. |
object({
enabled = optional(bool, false)
source = optional(object({
branch = optional(string, "gh-pages")
path = optional(string, "/")
}), {})
cname = optional(string)
})
| `{}` | no | | [pull\_request](#input\_pull\_request) | (Optional) A configuration for pull requests on the repository. `pull_request` block as defined below.
(Optional) `merge_commit` - A configuration for merge commits. `merge_commit` block as defined below.
(Optional) `enabled` - Whether to allow merge commits for pull requests. Defaults to `false`.
(Optional) `commit` - A configuration for commit title and message. `commit` block as defined below.
(Optional) `title` - The default value for a merge commit title. Can be `PR_TITLE` or `MERGE_MESSAGE`. Defaults to `MERGE_MESSAGE`.
(Optional) `message` - The default value for a merge commit message. Can be `PR_BODY`, `PR_TITLE`, or `BLANK`. Defaults to `BLANK`.
(Optional) `squash_merge` - A configuration for squash merges. `squash_merge` block as defined below.
(Optional) `enabled` - Whether to allow squash merges for pull requests. Defaults to `true`.
(Optional) `commit` - A configuration for commit title and message. `commit` block as defined below.
(Optional) `title` - The default value for a squash merge commit title. Can be `PR_TITLE` or `COMMIT_OR_PR_TITLE`. Defaults to `PR_TITLE`.
(Optional) `message` - The default value for a squash merge commit message. Can be `PR_BODY`, `COMMIT_MESSAGES`, or `BLANK`. Defaults to `COMMIT_MESSAGES`.
(Optional) `rebase_merge` - A configuration for rebase merges. `rebase_merge` block as defined below.
(Optional) `enabled` - Whether to allow rebase merges for pull requests. Defaults to `true`.
(Optional) `auto_merge_enabled` - Whether to allow auto-merge on pull requests. Defaults to `false`.
(Optional) `delete_branch_on_merge` - Whether to delete head branches when pull requests are merged. Defaults to `true`. |
object({
merge_commit = optional(object({
enabled = optional(bool, false)
commit = optional(object({
title = optional(string, "MERGE_MESSAGE")
message = optional(string, "BLANK")
}), {})
}), {})
squash_merge = optional(object({
enabled = optional(bool, true)
commit = optional(object({
title = optional(string, "PR_TITLE")
message = optional(string, "COMMIT_MESSAGES")
}), {})
}), {})
rebase_merge = optional(object({
enabled = optional(bool, true)
}), {})
auto_merge_enabled = optional(bool, false)
delete_branch_on_merge = optional(bool, true)
})
| `{}` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | | [template](#input\_template) | (Optional) Use a template repository, license or gitignore to create the repository.this resource. `template` block as defined below.
(Optional) `gitignore` - Choose which files not to track from a list of templates. Use the name of the template without the extension. For example, `Haskell`.
(Optional) `init_readme` - Whether to produce an initial commit with README.md in the repository. Defaults to `false`.
(Optional) `license` - A license tells others what they can and can't do with your code. Use the name of the license template without the extension. For example, `mit` or `mpl-2.0`.
(Optional) `repository` - Start this repository with a template repository's contents. The full name of the repository is required. A string of the form `owner/repository`. |
object({
gitignore = optional(string)
init_readme = optional(bool, false)
license = optional(string)
repository = optional(string)
})
| `{}` | no | | [topics](#input\_topics) | (Optional) A list of topics for the repository. | `set(string)` | `[]` | no | | [visibility](#input\_visibility) | (Optional) Can be `public`, `private` or `internal`. `internal` visibility is only available if your organization is associated with an enterprise account using GitHub Enterprise Cloud or GitHub Enterprise Server 2.20+. | `string` | `"private"` | no | diff --git a/modules/repository/telemetry.tf b/modules/repository/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/repository/telemetry.tf +++ b/modules/repository/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = < [terraform](#requirement\_terraform) | >= 1.12 | | [github](#requirement\_github) | >= 6.2 | -| [telemetry](#requirement\_telemetry) | >= 0.1.1 | +| [telemetry](#requirement\_telemetry) | >= 0.2.0 | ## Providers @@ -42,7 +42,7 @@ No modules. | [repositories](#input\_repositories) | (Optional) A list of repositories to create the webhook for. Create an organization-level webhook if you provide `*`. | `set(string)` |
[
"*"
]
| no | | [secret](#input\_secret) | (Optional) The shared secret for the webhook. | `string` | `""` | no | | [ssl\_enabled](#input\_ssl\_enabled) | (Optional) Whether to verify SSL certificates when delivering payloads. Default is true. | `bool` | `true` | no | -| [telemetry](#input\_telemetry) | (Optional) A configuration to collect telemetry data for the module. This is used to improve the module and its features. The data collected is anonymous and does not contain any sensitive information. The default configuration enables telemetry collection for machine, network, git, github, github actions, 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_terraform` - Whether to capture Terraform information. Default is `true`.
(Optional) `capture_toolchain` - Whether to capture toolchain information. Default is `true`. |
object({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)
})
| `{}` | no | +| [telemetry](#input\_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({
enabled = optional(bool, true)

capture_machine = optional(bool, true)
capture_network = optional(bool, true)
capture_git = optional(bool, true)
capture_github = optional(bool, true)
capture_github_actions = optional(bool, true)
capture_hcp_terraform = optional(bool, true)
capture_terraform = optional(bool, true)
capture_toolchain = optional(bool, true)

pseudonymization_enabled = optional(bool, false)
})
| `{}` | no | ## Outputs diff --git a/modules/webhook/telemetry.tf b/modules/webhook/telemetry.tf index 99565cf..c98bf9b 100644 --- a/modules/webhook/telemetry.tf +++ b/modules/webhook/telemetry.tf @@ -1,14 +1,16 @@ variable "telemetry" { description = <