Skip to content

[BUG]: github_actions_hosted_runner does not wait for public IP provisioning #3626

Description

@krukowskid

Expected Behavior

When public_ip_enabled = true, creating or updating a
github_actions_hosted_runner should wait until:

  1. The runner status is Ready.
  2. The GitHub API returns the allocated public_ips.

After terraform apply completes, outputs referencing public_ips should be populated.

Actual Behavior

The provider performs only one read immediately after creating or updating the runner. Because GitHub provisions hosted runners asynchronously, the resource can return while its status is still Provisioning and public_ips is empty.

The IPs appear in GitHub later, but Terraform state and dependent outputs remain empty until another refresh or apply.

Terraform Version

1.14.9

GitHub Installation Type

  • GitHub.com (Free, Pro, or Team)
  • GitHub Enterprise Server (on-premises)
  • GitHub Enterprise Cloud with Personal Accounts (github.com)
  • GitHub Enterprise Cloud with Managed Users/EMU (github.com)
  • GitHub Enterprise Cloud with Data Residency (*.ghe.com)
  • I don't know

Affected Resource(s)

github_actions_hosted_runner

Terraform Configuration Files

resource "github_actions_hosted_runner" "this" {
  name = "example"

  image {
    id     = "2306"
    source = "github"
  }

  public_ip_enabled = true
  maximum_runners   = 5
  size              = "2-core"
  runner_group_id   = github_actions_runner_group.this.id
}

output "github_actions_runner_public_ips" {
  value = github_actions_hosted_runner.this.public_ips
}

Steps to Reproduce

terraform apply

Debug Output

github_actions_runner_group.this: Creating...
github_actions_runner_group.this: Creation complete after 3s [id=5]
github_actions_hosted_runner.this: Creating...
github_actions_hosted_runner.this: Creation complete after 3s [id=8]

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

Outputs:

github_actions_runner_public_ips = tolist([])

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added
    Type: Bug
    Status: Triage
    on Sep 2, 2026
  2. github-actions commented on Sep 2, 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.

  3. added this to the v6.14.0 milestone on Sep 11, 2026
  4. removed
    Status: Triage
    on Sep 11, 2026
  5. added theissue type on Sep 11, 2026
  6. linked a pull request that will close this issue[MAINT] Fix actions_hosted_runner tests #3521on Sep 11, 2026
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

    Type: Bugr/actions_hosted_runner

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions