Get a self-hosted runner for a repository
Gets a specific self-hosted runner configured in a repository.
Authenticated users must have admin access to the repository to use this endpoint.
OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Unique identifier of the self-hosted runner.
Responses
Section titled “ Responses ”Response
A self hosted runner
object
The ID of the runner.
The ID of the runner group.
The name of the runner.
The Operating System of the runner.
The status of the runner.
A label for a self hosted runner
object
Unique identifier of the label.
Name of the label.
The type of label. Read-only labels are applied automatically when the runner is configured.
The version of the GitHub Actions Runner software. This is only set if the runner has connected to the service at least once.
Examples
{ "id": 23, "name": "MBP", "os": "macos", "status": "online", "busy": true, "ephemeral": false, "version": "2.323.0", "labels": [ { "id": 5, "name": "self-hosted", "type": "read-only" }, { "id": 7, "name": "X64", "type": "read-only" }, { "id": 20, "name": "macOS", "type": "read-only" }, { "id": 21, "name": "no-gpu", "type": "custom" } ]}