From 678f789764cfeb5058cffaa54608fb1772aef989 Mon Sep 17 00:00:00 2001 From: Kevin Mahoney Date: Thu, 22 Aug 2024 17:09:13 +0200 Subject: [PATCH 1/3] feat(actions_runner_group): add actions_runner_group --- .pre-commit-config.yaml | 7 - .trunk/configs/.terraform-docs.yaml | 33 +++ .trunk/trunk.yaml | 17 +- CHANGELOG.md | 9 - README.md | 46 +++- context.tf | 279 ---------------------- modules/actions_runner_group/README.md | 46 ++++ modules/actions_runner_group/main.tf | 8 + modules/actions_runner_group/outputs.tf | 49 ++++ modules/actions_runner_group/variables.tf | 34 +++ modules/actions_runner_group/versions.tf | 9 + 11 files changed, 234 insertions(+), 303 deletions(-) delete mode 100644 .pre-commit-config.yaml create mode 100644 .trunk/configs/.terraform-docs.yaml delete mode 100644 context.tf create mode 100644 modules/actions_runner_group/README.md create mode 100644 modules/actions_runner_group/main.tf create mode 100644 modules/actions_runner_group/outputs.tf create mode 100644 modules/actions_runner_group/variables.tf create mode 100644 modules/actions_runner_group/versions.tf diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 3945246..0000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,7 +0,0 @@ -# Prerequisites: -# brew install pre-commit terraform-docs -repos: - - repo: https://github.com/antonbabenko/pre-commit-terraform - rev: v1.88.0 - hooks: - - id: terraform_docs diff --git a/.trunk/configs/.terraform-docs.yaml b/.trunk/configs/.terraform-docs.yaml new file mode 100644 index 0000000..65cd769 --- /dev/null +++ b/.trunk/configs/.terraform-docs.yaml @@ -0,0 +1,33 @@ +formatter: markdown table + +content: |- + {{ .Requirements }} + + {{ .Providers }} + + {{ .Modules }} + + {{ .Resources }} + + {{ .Inputs }} + + {{ .Outputs }} + + {{ .Footer }} + +output: + file: README.md + template: |- + + + + {{ .Content }} + + + + +settings: + anchor: false + escape: false + html: false + lockfile: false diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml index bd5bfb5..6cfb151 100644 --- a/.trunk/trunk.yaml +++ b/.trunk/trunk.yaml @@ -2,13 +2,16 @@ # To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml version: 0.1 cli: - version: 1.22.2 + version: 1.22.3 # Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) plugins: sources: - id: trunk - ref: v1.6.1 + ref: v1.6.2 uri: https://github.com/trunk-io/plugins + - id: masterpointio + ref: e6b95ba + uri: https://github.com/masterpointio/trunk-plugins # Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) runtimes: enabled: @@ -20,15 +23,16 @@ lint: # Incompatible with some Terraform features: https://github.com/tenable/terrascan/issues/1331 - terrascan enabled: - - tofu@1.8.0 + - terraform-docs@0.18.0 + - tofu@1.8.1 - actionlint@1.7.1 - - checkov@3.2.218 + - checkov@3.2.235 - git-diff-check - markdownlint@0.41.0 - prettier@3.3.3 - - tflint@0.52.0 + - tflint@0.53.0 - trivy@0.54.1 - - trufflehog@3.81.5 + - trufflehog@3.81.9 - yamllint@1.35.1 ignore: - linters: [tofu] @@ -36,6 +40,7 @@ lint: - "**/backend.tf.json" actions: enabled: + - generate-terraform-docs - trunk-announce - trunk-check-pre-push - trunk-fmt-pre-commit diff --git a/CHANGELOG.md b/CHANGELOG.md index e37f154..e69de29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +0,0 @@ -# Changelog - -## [0.1.1](https://github.com/masterpointio/terraform-module-template/compare/0.1.0...v0.1.1) (2024-08-15) - - -### Bug Fixes - -* remove markdown trailing whitespace ([d609646](https://github.com/masterpointio/terraform-module-template/commit/d6096463b916eb536603d4ca3b2f3315e3fec9f2)) -* removes redundant editorconfig settings ([bbe0050](https://github.com/masterpointio/terraform-module-template/commit/bbe0050450cece8074f3d9ff5c3bd72ff01d8a1b)) diff --git a/README.md b/README.md index 865dbf2..7c7a366 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ -# terraform-module-template +# terraform-github-organization [![Release](https://img.shields.io/github/release/masterpointio/terraform-module-template.svg)](https://github.com/masterpointio/terraform-module-template/releases/latest) -This repository serves as a template for creating Terraform modules, providing a standardized structure and essential files for efficient module development. It's designed to ensure consistency and best practices across Terraform projects. +This module and its submodules contain configuration for managing an organization and configuration items which are at the organization scope in github. ## Usage @@ -41,3 +41,45 @@ If you have any issues or are waiting a long time for a PR to get merged then fe ## Built By [![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io) + + + + +## Requirements + +| Name | Version | +|------|---------| +| terraform | >= 1.0 | +| random | >= 3.0 | + +## Providers + +| Name | Version | +|------|---------| +| random | >= 3.0 | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|------|------| +| [random_pet.template](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/pet) | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| length | The length of the random name | `number` | `2` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| random_pet_name | The generated random pet name | + + + + diff --git a/context.tf b/context.tf deleted file mode 100644 index 5e0ef88..0000000 --- a/context.tf +++ /dev/null @@ -1,279 +0,0 @@ -# -# ONLY EDIT THIS FILE IN github.com/cloudposse/terraform-null-label -# All other instances of this file should be a copy of that one -# -# -# Copy this file from https://github.com/cloudposse/terraform-null-label/blob/master/exports/context.tf -# and then place it in your Terraform module to automatically get -# Cloud Posse's standard configuration inputs suitable for passing -# to Cloud Posse modules. -# -# curl -sL https://raw.githubusercontent.com/cloudposse/terraform-null-label/master/exports/context.tf -o context.tf -# -# Modules should access the whole context as `module.this.context` -# to get the input variables with nulls for defaults, -# for example `context = module.this.context`, -# and access individual variables as `module.this.`, -# with final values filled in. -# -# For example, when using defaults, `module.this.context.delimiter` -# will be null, and `module.this.delimiter` will be `-` (hyphen). -# - -module "this" { - source = "cloudposse/label/null" - version = "0.25.0" # requires Terraform >= 0.13.0 - - enabled = var.enabled - namespace = var.namespace - tenant = var.tenant - environment = var.environment - stage = var.stage - name = var.name - delimiter = var.delimiter - attributes = var.attributes - tags = var.tags - additional_tag_map = var.additional_tag_map - label_order = var.label_order - regex_replace_chars = var.regex_replace_chars - id_length_limit = var.id_length_limit - label_key_case = var.label_key_case - label_value_case = var.label_value_case - descriptor_formats = var.descriptor_formats - labels_as_tags = var.labels_as_tags - - context = var.context -} - -# Copy contents of cloudposse/terraform-null-label/variables.tf here - -variable "context" { - type = any - default = { - enabled = true - namespace = null - tenant = null - environment = null - stage = null - name = null - delimiter = null - attributes = [] - tags = {} - additional_tag_map = {} - regex_replace_chars = null - label_order = [] - id_length_limit = null - label_key_case = null - label_value_case = null - descriptor_formats = {} - # Note: we have to use [] instead of null for unset lists due to - # https://github.com/hashicorp/terraform/issues/28137 - # which was not fixed until Terraform 1.0.0, - # but we want the default to be all the labels in `label_order` - # and we want users to be able to prevent all tag generation - # by setting `labels_as_tags` to `[]`, so we need - # a different sentinel to indicate "default" - labels_as_tags = ["unset"] - } - description = <<-EOT - Single object for setting entire context at once. - See description of individual variables for details. - Leave string and numeric variables as `null` to use default value. - Individual variable settings (non-null) override settings in context object, - except for attributes, tags, and additional_tag_map, which are merged. - EOT - - validation { - condition = lookup(var.context, "label_key_case", null) == null ? true : contains(["lower", "title", "upper"], var.context["label_key_case"]) - error_message = "Allowed values: `lower`, `title`, `upper`." - } - - validation { - condition = lookup(var.context, "label_value_case", null) == null ? true : contains(["lower", "title", "upper", "none"], var.context["label_value_case"]) - error_message = "Allowed values: `lower`, `title`, `upper`, `none`." - } -} - -variable "enabled" { - type = bool - default = null - description = "Set to false to prevent the module from creating any resources" -} - -variable "namespace" { - type = string - default = null - description = "ID element. Usually an abbreviation of your organization name, e.g. 'eg' or 'cp', to help ensure generated IDs are globally unique" -} - -variable "tenant" { - type = string - default = null - description = "ID element _(Rarely used, not included by default)_. A customer identifier, indicating who this instance of a resource is for" -} - -variable "environment" { - type = string - default = null - description = "ID element. Usually used for region e.g. 'uw2', 'us-west-2', OR role 'prod', 'staging', 'dev', 'UAT'" -} - -variable "stage" { - type = string - default = null - description = "ID element. Usually used to indicate role, e.g. 'prod', 'staging', 'source', 'build', 'test', 'deploy', 'release'" -} - -variable "name" { - type = string - default = null - description = <<-EOT - ID element. Usually the component or solution name, e.g. 'app' or 'jenkins'. - This is the only ID element not also included as a `tag`. - The "name" tag is set to the full `id` string. There is no tag with the value of the `name` input. - EOT -} - -variable "delimiter" { - type = string - default = null - description = <<-EOT - Delimiter to be used between ID elements. - Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. - EOT -} - -variable "attributes" { - type = list(string) - default = [] - description = <<-EOT - ID element. Additional attributes (e.g. `workers` or `cluster`) to add to `id`, - in the order they appear in the list. New attributes are appended to the - end of the list. The elements of the list are joined by the `delimiter` - and treated as a single ID element. - EOT -} - -variable "labels_as_tags" { - type = set(string) - default = ["default"] - description = <<-EOT - Set of labels (ID elements) to include as tags in the `tags` output. - Default is to include all labels. - Tags with empty values will not be included in the `tags` output. - Set to `[]` to suppress all generated tags. - **Notes:** - The value of the `name` tag, if included, will be the `id`, not the `name`. - Unlike other `null-label` inputs, the initial setting of `labels_as_tags` cannot be - changed in later chained modules. Attempts to change it will be silently ignored. - EOT -} - -variable "tags" { - type = map(string) - default = {} - description = <<-EOT - Additional tags (e.g. `{'BusinessUnit': 'XYZ'}`). - Neither the tag keys nor the tag values will be modified by this module. - EOT -} - -variable "additional_tag_map" { - type = map(string) - default = {} - description = <<-EOT - Additional key-value pairs to add to each map in `tags_as_list_of_maps`. Not added to `tags` or `id`. - This is for some rare cases where resources want additional configuration of tags - and therefore take a list of maps with tag key, value, and additional configuration. - EOT -} - -variable "label_order" { - type = list(string) - default = null - description = <<-EOT - The order in which the labels (ID elements) appear in the `id`. - Defaults to ["namespace", "environment", "stage", "name", "attributes"]. - You can omit any of the 6 labels ("tenant" is the 6th), but at least one must be present. - EOT -} - -variable "regex_replace_chars" { - type = string - default = null - description = <<-EOT - Terraform regular expression (regex) string. - Characters matching the regex will be removed from the ID elements. - If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. - EOT -} - -variable "id_length_limit" { - type = number - default = null - description = <<-EOT - Limit `id` to this many characters (minimum 6). - Set to `0` for unlimited length. - Set to `null` for keep the existing setting, which defaults to `0`. - Does not affect `id_full`. - EOT - validation { - condition = var.id_length_limit == null ? true : var.id_length_limit >= 6 || var.id_length_limit == 0 - error_message = "The id_length_limit must be >= 6 if supplied (not null), or 0 for unlimited length." - } -} - -variable "label_key_case" { - type = string - default = null - description = <<-EOT - Controls the letter case of the `tags` keys (label names) for tags generated by this module. - Does not affect keys of tags passed in via the `tags` input. - Possible values: `lower`, `title`, `upper`. - Default value: `title`. - EOT - - validation { - condition = var.label_key_case == null ? true : contains(["lower", "title", "upper"], var.label_key_case) - error_message = "Allowed values: `lower`, `title`, `upper`." - } -} - -variable "label_value_case" { - type = string - default = null - description = <<-EOT - Controls the letter case of ID elements (labels) as included in `id`, - set as tag values, and output by this module individually. - Does not affect values of tags passed in via the `tags` input. - Possible values: `lower`, `title`, `upper` and `none` (no transformation). - Set this to `title` and set `delimiter` to `""` to yield Pascal Case IDs. - Default value: `lower`. - EOT - - validation { - condition = var.label_value_case == null ? true : contains(["lower", "title", "upper", "none"], var.label_value_case) - error_message = "Allowed values: `lower`, `title`, `upper`, `none`." - } -} - -variable "descriptor_formats" { - type = any - default = {} - description = <<-EOT - Describe additional descriptors to be output in the `descriptors` output map. - Map of maps. Keys are names of descriptors. Values are maps of the form - `{ - format = string - labels = list(string) - }` - (Type is `any` so the map values can later be enhanced to provide additional options.) - `format` is a Terraform format string to be passed to the `format()` function. - `labels` is a list of labels, in order, to pass to `format()` function. - Label values will be normalized before being passed to `format()` so they will be - identical to how they appear in `id`. - Default is `{}` (`descriptors` output will be empty). - EOT -} - -#### End of copy of cloudposse/terraform-null-label/variables.tf diff --git a/modules/actions_runner_group/README.md b/modules/actions_runner_group/README.md new file mode 100644 index 0000000..d81243f --- /dev/null +++ b/modules/actions_runner_group/README.md @@ -0,0 +1,46 @@ + + + +## Requirements + +| Name | Version | +|------|---------| +| terraform | >=1.3 | +| github | >= 6.2.3 | + +## Providers + +| Name | Version | +|------|---------| +| github | >= 6.2.3 | + +## Modules + +No modules. + +## Resources + +| Name | Type | +|------|------| +| [github_actions_runner_group.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/actions_runner_group) | resource | + +## Inputs + +| Name | Description | Type | Default | Required | +|------|-------------|------|---------|:--------:| +| allows_public_repositories | Whether public repositories can be added to the runner group | `bool` | `null` | no | +| name | Name of the runner group | `string` | n/a | yes | +| restricted_to_workflows | If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false. | `bool` | `null` | no | +| selected_repository_ids | IDs of the repositories which should be added to the runner group | `list(string)` | `[]` | no | +| selected_workflows | List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true. | `list(string)` | `[]` | no | +| visibility | Visibility of a runner group. Whether the runner group can include all, selected, or private repositories. A value of private is not currently supported due to limitations in the GitHub API. | `string` | `null` | no | + +## Outputs + +| Name | Description | +|------|-------------| +| test | test | + + + + diff --git a/modules/actions_runner_group/main.tf b/modules/actions_runner_group/main.tf new file mode 100644 index 0000000..06f2493 --- /dev/null +++ b/modules/actions_runner_group/main.tf @@ -0,0 +1,8 @@ +resource "github_actions_runner_group" "this" { + name = var.name + restricted_to_workflows = var.restricted_to_workflows + selected_repository_ids = var.selected_repository_ids + selected_workflows = var.selected_workflows + visibility = var.visibility + allows_public_repositories = var.allows_public_repositories +} diff --git a/modules/actions_runner_group/outputs.tf b/modules/actions_runner_group/outputs.tf new file mode 100644 index 0000000..bf92798 --- /dev/null +++ b/modules/actions_runner_group/outputs.tf @@ -0,0 +1,49 @@ +output "allows_public_repositories" { + description = "Whether public repositories can be added to the runner group" + value = github_actions_runner_group.this.allows_public_repositories +} + +output "default" { + description = "Whether this is the default runner group" + value = github_actions_runner_group.this.default +} + +output "etag" { + description = "An etag representing the runner group object" + value = github_actions_runner_group.this.etag +} + +output "inherited" { + description = "Whether the runner group is inherited from the enterprise level" + value = github_actions_runner_group.this.inherited +} + +output "runners_url" { + description = "The GitHub API URL for the runner group's runners" + value = github_actions_runner_group.this.runners_url +} + +output "selected_repository_ids" { + description = "List of repository IDs that can access the runner group" + value = github_actions_runner_group.this.selected_repository_ids +} + +output "selected_repositories_url" { + description = "GitHub API URL for the runner group's repositories" + value = github_actions_runner_group.this.selected_repositories_url +} + +output "visibility" { + description = "The visibility of the runner group" + value = github_actions_runner_group.this.visibility +} + +output "restricted_to_workflows" { + description = "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false." + value = github_actions_runner_group.this.restricted_to_workflows +} + +output "selected_workflows" { + description = "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true." + value = github_actions_runner_group.this.selected_workflows +} diff --git a/modules/actions_runner_group/variables.tf b/modules/actions_runner_group/variables.tf new file mode 100644 index 0000000..4c6b65a --- /dev/null +++ b/modules/actions_runner_group/variables.tf @@ -0,0 +1,34 @@ +variable "name" { + description = "Name of the runner group" + type = string +} + +variable "restricted_to_workflows" { + description = "If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false." + type = bool + default = null +} + +variable "selected_repository_ids" { + description = "IDs of the repositories which should be added to the runner group" + type = list(string) + default = [] +} + +variable "selected_workflows" { + description = "List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true." + type = list(string) + default = [] +} + +variable "visibility" { + description = "Visibility of a runner group. Whether the runner group can include all, selected, or private repositories. A value of private is not currently supported due to limitations in the GitHub API." + type = string + default = null +} + +variable "allows_public_repositories" { + description = "Whether public repositories can be added to the runner group" + type = bool + default = null +} diff --git a/modules/actions_runner_group/versions.tf b/modules/actions_runner_group/versions.tf new file mode 100644 index 0000000..a431a52 --- /dev/null +++ b/modules/actions_runner_group/versions.tf @@ -0,0 +1,9 @@ +terraform { + required_version = ">=1.3" + required_providers { + github = { + source = "integrations/github" + version = ">= 6.2.3" + } + } +} From a69c62797e79f66508e1061c1b4af0fe0ac05deb Mon Sep 17 00:00:00 2001 From: Kevin Mahoney Date: Thu, 22 Aug 2024 17:14:25 +0200 Subject: [PATCH 2/3] lint fixes --- .github/workflows/lint.yaml | 9 ++++- README.md | 48 ++++++++------------------ modules/actions_runner_group/README.md | 4 +++ 3 files changed, 26 insertions(+), 35 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index 092d215..88f5242 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -3,7 +3,6 @@ name: Lint on: pull_request permissions: - actions: read checks: write contents: read pull-requests: read @@ -16,3 +15,11 @@ jobs: uses: actions/checkout@v4 - name: Trunk Check uses: trunk-io/trunk-action@v1 + pr-title-check: + runs-on: ubuntu-latest + steps: + - uses: amannn/action-semantic-pull-request@v5 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + requireScope: true diff --git a/README.md b/README.md index 7c7a366..4b8a26e 100644 --- a/README.md +++ b/README.md @@ -8,40 +8,6 @@ This module and its submodules contain configuration for managing an organizatio TODO - - -## Requirements - -No requirements. - -## Providers - -No provider. - -## Inputs - -No input. - -## Outputs - -No output. - - - -## Contributing - -Contributions are welcome and appreciated! - -Found an issue or want to request a feature? [Open an issue](TODO) - -Want to fix a bug you found or add some functionality? Fork, clone, commit, push, and PR and we'll check it out. - -If you have any issues or are waiting a long time for a PR to get merged then feel free to ping us at [hello@masterpoint.io](mailto:hello@masterpoint.io). - -## Built By - -[![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io) - @@ -83,3 +49,17 @@ No modules. + +## Contributing + +Contributions are welcome and appreciated! + +Found an issue or want to request a feature? [Open an issue](TODO) + +Want to fix a bug you found or add some functionality? Fork, clone, commit, push, and PR and we'll check it out. + +If you have any issues or are waiting a long time for a PR to get merged then feel free to ping us at [hello@masterpoint.io](mailto:hello@masterpoint.io). + +## Built By + +[![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io) diff --git a/modules/actions_runner_group/README.md b/modules/actions_runner_group/README.md index d81243f..b21493c 100644 --- a/modules/actions_runner_group/README.md +++ b/modules/actions_runner_group/README.md @@ -1,3 +1,7 @@ +# github_actions_runner_group + +This module manages a GitHub Actions runner group, which is a collection of runners that can be used to run workflows in GitHub Actions. + From 8c1f2d4127c89082f59aa4652cd23a278fb93ae9 Mon Sep 17 00:00:00 2001 From: Kevin Mahoney Date: Thu, 22 Aug 2024 17:17:16 +0200 Subject: [PATCH 3/3] auto-add masterpoint to terraform-docs --- .trunk/configs/.terraform-docs.yaml | 14 ++++++++++++++ README.md | 6 +++--- modules/actions_runner_group/README.md | 25 ++++++++++++++++++++++++- 3 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.trunk/configs/.terraform-docs.yaml b/.trunk/configs/.terraform-docs.yaml index 65cd769..4c757a4 100644 --- a/.trunk/configs/.terraform-docs.yaml +++ b/.trunk/configs/.terraform-docs.yaml @@ -23,6 +23,20 @@ output: {{ .Content }} + ## Contributing + + Contributions are welcome and appreciated! + + Found an issue or want to request a feature? [Open an issue](TODO) + + Want to fix a bug you found or add some functionality? Fork, clone, commit, push, and PR and we'll check it out. + + If you have any issues or are waiting a long time for a PR to get merged then feel free to ping us at [hello@masterpoint.io](mailto:hello@masterpoint.io). + + ## Built By + + [![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io) + diff --git a/README.md b/README.md index 4b8a26e..3fa9097 100644 --- a/README.md +++ b/README.md @@ -47,9 +47,6 @@ No modules. | random_pet_name | The generated random pet name | - - - ## Contributing Contributions are welcome and appreciated! @@ -63,3 +60,6 @@ If you have any issues or are waiting a long time for a PR to get merged then fe ## Built By [![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io) + + + diff --git a/modules/actions_runner_group/README.md b/modules/actions_runner_group/README.md index b21493c..5451bdf 100644 --- a/modules/actions_runner_group/README.md +++ b/modules/actions_runner_group/README.md @@ -43,8 +43,31 @@ No modules. | Name | Description | |------|-------------| -| test | test | +| allows_public_repositories | Whether public repositories can be added to the runner group | +| default | Whether this is the default runner group | +| etag | An etag representing the runner group object | +| inherited | Whether the runner group is inherited from the enterprise level | +| restricted_to_workflows | If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false. | +| runners_url | The GitHub API URL for the runner group's runners | +| selected_repositories_url | GitHub API URL for the runner group's repositories | +| selected_repository_ids | List of repository IDs that can access the runner group | +| selected_workflows | List of workflows the runner group should be allowed to run. This setting will be ignored unless restricted_to_workflows is set to true. | +| visibility | The visibility of the runner group | +## Contributing + +Contributions are welcome and appreciated! + +Found an issue or want to request a feature? [Open an issue](TODO) + +Want to fix a bug you found or add some functionality? Fork, clone, commit, push, and PR and we'll check it out. + +If you have any issues or are waiting a long time for a PR to get merged then feel free to ping us at [hello@masterpoint.io](mailto:hello@masterpoint.io). + +## Built By + +[![Masterpoint Logo](https://i.imgur.com/RDLnuQO.png)](https://masterpoint.io) +