diff --git a/github/resource_github_actions_runner_group.go b/github/resource_github_actions_runner_group.go index 55b36f8bc2..8939b12bc0 100644 --- a/github/resource_github_actions_runner_group.go +++ b/github/resource_github_actions_runner_group.go @@ -64,6 +64,15 @@ func resourceGithubActionsRunnerGroup() *schema.Resource { Required: true, ValidateFunc: validation.StringInSlice([]string{"all", "selected", "private"}, false), }, + "restricted_to_workflows": { + Type: schema.TypeBool, + Computed: true, + }, + "selected_workflows": { + Type: schema.TypeList, + Elem: &schema.Schema{Type: schema.TypeString}, + Computed: true, + }, }, } } diff --git a/website/docs/r/actions_runner_group.html.markdown b/website/docs/r/actions_runner_group.html.markdown index 941c6eef6c..f4b341b9e6 100644 --- a/website/docs/r/actions_runner_group.html.markdown +++ b/website/docs/r/actions_runner_group.html.markdown @@ -42,6 +42,8 @@ The following arguments are supported: * `selected_repository_ids` - List of repository IDs that can access the runner group * `selected_repositories_url` - Github API URL for the runner group's repositories * `visibility` - The visibility of the runner group +* `restricted_to_workflows` - If true, the runner group will be restricted to running only the workflows specified in the selected_workflows array +* `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. ## Import