diff --git a/github/resource_github_actions_runner_group.go b/github/resource_github_actions_runner_group.go index 4f7c088821..91cc516835 100644 --- a/github/resource_github_actions_runner_group.go +++ b/github/resource_github_actions_runner_group.go @@ -118,6 +118,8 @@ func resourceGithubActionsRunnerGroupCreate(d *schema.ResourceData, meta interfa d.Set("selected_repositories_url", runnerGroup.GetSelectedRepositoriesURL()) d.Set("visibility", runnerGroup.GetVisibility()) d.Set("selected_repository_ids", selectedRepositoryIDs) // Note: runnerGroup has no method to get selected repository IDs + d.Set("restricted_to_workflows", runnerGroup.GetRestrictedToWorkflows()) + d.Set("selected_workflows", runnerGroup.GetSelectedWorkflows()) return resourceGithubActionsRunnerGroupRead(d, meta) } @@ -165,7 +167,9 @@ func resourceGithubActionsRunnerGroupRead(d *schema.ResourceData, meta interface d.Set("runners_url", runnerGroup.GetRunnersURL()) d.Set("selected_repositories_url", runnerGroup.GetSelectedRepositoriesURL()) d.Set("visibility", runnerGroup.GetVisibility()) - + d.Set("restricted_to_workflows", runnerGroup.GetRestrictedToWorkflows()) + d.Set("selected_workflows", runnerGroup.GetSelectedWorkflows()) + selectedRepositoryIDs := []int64{} options := github.ListOptions{ PerPage: maxPerPage,