Create configuration for a just-in-time runner for a repository
Generates a configuration that can be passed to the runner application at startup.
The authenticated user must have admin access to the repository.
OAuth tokens and personal access tokens (classic) need therepo 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.
Request Body required
Section titled “ Request Body required ”object
The name of the new runner.
The ID of the runner group to register the runner to.
The names of the custom labels to add to the runner. Minimum items: 1. Maximum items: 100.
The working directory to be used for job execution, relative to the runner install directory.
Examples
{ "name": "New runner", "runner_group_id": 1, "labels": [ "self-hosted", "X64", "macOS", "no-gpu" ], "work_folder": "_work"}Responses
Section titled “ Responses ”Response
object
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.
The base64 encoded runner configuration.
Examples
{ "runner": { "id": 23, "name": "New runner", "os": "unknown", "status": "offline", "busy": false, "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" } ] }, "encoded_jit_config": "abc123"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Conflict
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Validation Error Simple
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ "example" ]}