Skip to content

[BUG]: github_actions_hosted_runner reads image, API returns image_details, so import always forces a replace #3732

Duplicate

Description

@LTXN-WG

Describe the bug

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.

Activity

  1. github-actions commented on Nov 14, 2026

    @github-actions

    👋 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.

  2. added
    Duplicate
    on Nov 26, 2026
  3. robert-crandall commented on Nov 26, 2026

    @robert-crandall
    Contributor

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions