From db4381d9251f1eae5066bfa2a6853a49b349b990 Mon Sep 17 00:00:00 2001 From: bob-bins Date: Sun, 6 Nov 2022 21:32:43 -0800 Subject: [PATCH] issue #1332 support workflow restrictions in github_actions_runner_group --- github/resource_github_actions_runner_group.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,