You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: github_actions_hosted_runner reads image, API returns image_details, so import always forces a replace #3732
github_actions_hosted_runner reads the runner image from runner["image"], but the REST API (GET /orgs/{org}/actions/hosted-runners) returns it as image_details and has no image key. After terraform import (or a Pulumi import), image is always null in state. image is ForceNew, so the next plan wants to replace a runner whose image already matches the config, and a prevent_destroy / protect setting blocks it.
Evidence
resource_github_actions_hosted_runner.go on main: image is ForceNew: true (around line 49) and the read sets it from runner["image"] (around line 400). Nothing in the file reads image_details.
Live API response for an org runner: image_details: { id: "5289", source: "github", ... }, no image field.
Pulumi (pulumi-github v6.15.1, which wraps this provider) preview after import: image: {<nil>} => {map[id:{5289} source:{github}]} followed by a replace.
Expected
The read maps image_details (id, source) into image, so an imported runner with a matching image shows no diff.
Workaround
ignore_changes = [image] (Terraform) or ignoreChanges: ["image"] (Pulumi) on imported runners.
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
You can help us prioritize by adding details, reproduction steps, or a 👍 to issues that matter to you, and by joining the discussion on open issues and PRs.
Activity
github-actions commentedon Nov 14, 2026
👋 Hi, and thank you for opening this issue!
This repo is maintained by GitHub and community members on a best-effort basis. We'll get to this as soon as we can.
You can help us prioritize by adding details, reproduction steps, or a 👍 to issues that matter to you, and by joining the discussion on open issues and PRs.
🤖 This is an automated message.
robert-crandall commentedon Nov 26, 2026
Closing this as a duplicate of #3405, and I linked your root-cause notes there so we do not lose them. Thanks for digging into this!