feat: Add NetworkConfigurationID and HostedRunnersURL to enterprise runner group types#4099
Open
austenstone wants to merge 1 commit intogoogle:masterfrom
Open
Conversation
…unner group types Add NetworkConfigurationID and HostedRunnersURL fields to EnterpriseRunnerGroup, and NetworkConfigurationID to CreateEnterpriseRunnerGroupRequest and UpdateEnterpriseRunnerGroupRequest to match the GitHub API response schema. These fields already exist on the organization-scoped RunnerGroup type but were missing from the enterprise equivalents. The GitHub API returns both fields on enterprise runner group endpoints (List, Get, Create, Update). Fixes: integrations/terraform-provider-github#3274
NetworkConfigurationID and HostedRunnersURL to enterprise runner group types
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #4099 +/- ##
=======================================
Coverage 93.67% 93.67%
=======================================
Files 211 211
Lines 19478 19478
=======================================
Hits 18246 18246
Misses 1034 1034
Partials 198 198 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
gmlewis
approved these changes
Mar 17, 2026
Collaborator
gmlewis
left a comment
There was a problem hiding this comment.
Thank you, @austenstone!
LGTM.
Awaiting second LGTM+Approval from any other contributor to this repo before merging.
cc: @stevehipwell - @alexandear - @zyfy29 - @Not-Dhananjay-Mishra - @munlicode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add
NetworkConfigurationIDandHostedRunnersURLfields to enterprise runner group types to match the GitHub API response schema.Changes
EnterpriseRunnerGroup— addedHostedRunnersURLandNetworkConfigurationIDfieldsCreateEnterpriseRunnerGroupRequest— addedNetworkConfigurationIDfieldUpdateEnterpriseRunnerGroupRequest— addedNetworkConfigurationIDfieldgo generateContext
These fields already exist on the organization-scoped
RunnerGrouptype (actions_runner_groups.go) but were missing from the enterprise equivalents.The GitHub API returns both fields on all enterprise runner group endpoints:
GET /enterprises/{enterprise}/actions/runner-groupsPOST /enterprises/{enterprise}/actions/runner-groupsGET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}PATCH /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}API docs: https://docs.github.com/en/enterprise-cloud@latest/rest/actions/self-hosted-runner-groups?apiVersion=2026-03-10
The
network_configuration_idfield is used for associating hosted compute network configurations (GitHub-hosted private networking / VNET injection) with enterprise runner groups. Thehosted_runners_urlfield provides the URL for listing GitHub-hosted runners in a group.Motivation
This is needed by the Terraform provider for GitHub (PR #3274) which currently has to make raw HTTP calls to work around the missing fields.
Testing
EnterpriseRunnerGroup,EnterpriseRunnerGroups,CreateEnterpriseRunnerGroupRequest, andUpdateEnterpriseRunnerGroupRequestoctodemoenterprise) — both fields deserialize correctly