GitHub Actions · Arazzo Workflow

GitHub Actions Register a Self-hosted Runner

Version 1.0.0

List the available runner application binaries, mint a registration token, then list the repository's runners.

1 workflow 1 source API 1 provider
View Spec View on GitHub ArazzoWorkflows

Provider

github-actions

Workflows

register-runner
Gather runner binaries and a registration token for a repository.
Lists downloadable runner applications, mints a registration token, and lists the repository's self-hosted runners.
3 steps inputs: accessToken, owner, repo outputs: registrationToken, runners, tokenExpiresAt
1
listRunnerApplications
List the runner application binaries available for download so the right OS/architecture package can be chosen.
2
createRegistrationToken
Create a registration token to pass to the self-hosted runner config script. Returns 201 with a token and its expiry.
3
listRunners
List the repository's currently registered self-hosted runners to confirm the existing inventory.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: GitHub Actions Register a Self-hosted Runner
  summary: List the available runner application binaries, mint a registration token, then list the repository's runners.
  description: >-
    Prepares everything an operator needs to bring a self-hosted runner online.
    The workflow lists the runner application binaries available for download,
    creates a short-lived registration token to pass to the runner config
    script, and lists the repository's currently registered runners so the
    operator can confirm the inventory before and after configuration. Every step
    spells out its request inline so the flow can be read and executed without
    opening the underlying OpenAPI description.
  version: 1.0.0
sourceDescriptions:
- name: selfHostedRunnersApi
  url: ../openapi/github-actions-self-hosted-runners-api-openapi.yml
  type: openapi
workflows:
- workflowId: register-runner
  summary: Gather runner binaries and a registration token for a repository.
  description: >-
    Lists downloadable runner applications, mints a registration token, and
    lists the repository's self-hosted runners.
  inputs:
    type: object
    required:
    - accessToken
    - owner
    - repo
    properties:
      accessToken:
        type: string
        description: GitHub bearer token with repository administration access.
      owner:
        type: string
        description: The account owner of the repository.
      repo:
        type: string
        description: The name of the repository without the .git extension.
  steps:
  - stepId: listRunnerApplications
    description: >-
      List the runner application binaries available for download so the right
      OS/architecture package can be chosen.
    operationId: listRunnerApplicationsForRepo
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      firstDownloadUrl: $response.body#/0/download_url
      firstOs: $response.body#/0/os
  - stepId: createRegistrationToken
    description: >-
      Create a registration token to pass to the self-hosted runner config
      script. Returns 201 with a token and its expiry.
    operationId: createRegistrationTokenForRepo
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    successCriteria:
    - condition: $statusCode == 201
    outputs:
      token: $response.body#/token
      expiresAt: $response.body#/expires_at
  - stepId: listRunners
    description: >-
      List the repository's currently registered self-hosted runners to confirm
      the existing inventory.
    operationId: listSelfHostedRunnersForRepo
    parameters:
    - name: Authorization
      in: header
      value: "Bearer $inputs.accessToken"
    - name: owner
      in: path
      value: $inputs.owner
    - name: repo
      in: path
      value: $inputs.repo
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      totalRunners: $response.body#/total_count
      runners: $response.body#/runners
  outputs:
    registrationToken: $steps.createRegistrationToken.outputs.token
    tokenExpiresAt: $steps.createRegistrationToken.outputs.expiresAt
    runners: $steps.listRunners.outputs.runners

Work with this as data

Every workflow here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This workflow
curl "https://apis.io/api/v1/arazzo/github-actions-register-runner-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.