feat: Add custom image endpoints for GitHub-hosted runners by austenstone · Pull Request #4101 · google/go-github

added 2 commits

March 16, 2026 18:29
Add 6 new endpoints for managing custom images on GitHub-hosted runners,
for both organization and enterprise levels:

- ListHostedRunnerCustomImages: GET .../hosted-runners/images/custom
- GetHostedRunnerCustomImage: GET .../hosted-runners/images/custom/{id}
- DeleteHostedRunnerCustomImage: DELETE .../hosted-runners/images/custom/{id}
- ListHostedRunnerCustomImageVersions: GET .../hosted-runners/images/custom/{id}/versions
- GetHostedRunnerCustomImageVersion: GET .../hosted-runners/images/custom/{id}/versions/{ver}
- DeleteHostedRunnerCustomImageVersion: DELETE .../hosted-runners/images/custom/{id}/versions/{ver}

New types: HostedRunnerCustomImage, HostedRunnerCustomImages,
HostedRunnerCustomImageVersion, HostedRunnerCustomImageVersions

Fixes #XXXX
…ustomImages not HostedRunnerCustomImageVersions

austenstone added a commit to austenstone/terraform-provider-github that referenced this pull request

Mar 16, 2026
Add three new data sources for managing custom images on GitHub-hosted runners:

- github_actions_hosted_runner_custom_images: List all custom images for an org
- github_actions_hosted_runner_custom_image: Get a single custom image definition
- github_actions_hosted_runner_custom_image_versions: List versions of a custom image

WIP: Blocked on google/go-github#4101 merging. Currently uses raw HTTP calls
via the v3client to avoid a go-github version bump. Once the go-github PR
lands and is released, these can be migrated to typed SDK methods.

Includes acceptance tests, provider registration, and website docs.

@gmlewis gmlewis changed the title Add custom image endpoints for GitHub-hosted runners feat: Add custom image endpoints for GitHub-hosted runners

Mar 17, 2026

gmlewis

Not-Dhananjay-Mishra

@austenstone

@austenstone

Not-Dhananjay-Mishra

stevehipwell