This resource allows you to create and manage GitHub Actions runner groups within your GitHub enterprise organizations. You must have admin access to an organization to use this resource.
resource "github_repository" "example" {
name = "my-repository"
}
resource "github_actions_runner_group" "example" {
name = github_repository.example.name
visibility = "selected"
selected_repository_ids = [github_repository.example.repo_id]
}
The following arguments are supported:
name
- (Required) Name of the runner grouprestricted_to_workflows
- (Optional) If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.selected_repository_ids
- (Optional) IDs of the repositories which should be added to the runner groupselected_workflows
- (Optional) 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
- (Optional) 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.allows_public_repositories
- (Optional) Whether public repositories can be added to the runner group. Defaults to false.allows_public_repositories
- Whether public repositories can be added to the runner groupdefault
- Whether this is the default runner groupetag
- An etag representing the runner group objectinherited
- Whether the runner group is inherited from the enterprise levelrunners_url
- The GitHub API URL for the runner group's runnersselected_repository_ids
- List of repository IDs that can access the runner groupselected_repositories_url
- GitHub API URL for the runner group's repositoriesvisibility
- The visibility of the runner grouprestricted_to_workflows
- If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array. Defaults to false.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.This resource can be imported using the ID of the runner group:
$ terraform import github_actions_runner_group.test 7