From 5be1030d1028f581acba6cacdb9835f2721e21ae Mon Sep 17 00:00:00 2001 From: Trevor Taubitz Date: Wed, 6 May 2026 13:53:13 -0400 Subject: [PATCH 1/2] fix: Fix invalid JSON key Signed-off-by: Trevor Taubitz --- github/resource_github_actions_hosted_runner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github/resource_github_actions_hosted_runner.go b/github/resource_github_actions_hosted_runner.go index 84298a0787..a5abec1de3 100644 --- a/github/resource_github_actions_hosted_runner.go +++ b/github/resource_github_actions_hosted_runner.go @@ -218,7 +218,7 @@ func flattenImage(image map[string]any) []any { if source, ok := image["source"].(string); ok { result["source"] = source } - if size, ok := image["size"].(float64); ok { + if size, ok := image["size_gb"].(float64); ok { result["size_gb"] = int(size) } @@ -399,7 +399,7 @@ func resourceGithubActionsHostedRunnerRead(d *schema.ResourceData, meta any) err } } - if image, ok := runner["image"].(map[string]any); ok { + if image, ok := runner["image_details"].(map[string]any); ok { if err := d.Set("image", flattenImage(image)); err != nil { return err } From 96803713181948fd75a0422d317e1bdae5ab8fa2 Mon Sep 17 00:00:00 2001 From: Trevor Taubitz Date: Wed, 6 May 2026 13:53:30 -0400 Subject: [PATCH 2/2] test: Don't exclude the image block during import tests Signed-off-by: Trevor Taubitz --- github/resource_github_actions_hosted_runner_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/resource_github_actions_hosted_runner_test.go b/github/resource_github_actions_hosted_runner_test.go index ff510d84aa..80478bc018 100644 --- a/github/resource_github_actions_hosted_runner_test.go +++ b/github/resource_github_actions_hosted_runner_test.go @@ -345,7 +345,7 @@ func TestAccGithubActionsHostedRunner(t *testing.T) { ResourceName: "github_actions_hosted_runner.test", ImportState: true, ImportStateVerify: true, - ImportStateVerifyIgnore: []string{"image", "image_gen"}, + ImportStateVerifyIgnore: []string{"image_gen"}, }, }, })