API reference
Mint a runner GitHub token
A short-lived GitHub token for the lease's one repository, with contents and pull_requests write, minted from the account's installation of InOrbit's GitHub App and never stored. Only the runner holding the lease, with its current fencing token. The answer carries the token and its expiry, or a reason (not_installed, not_listed, needs_permission, rate_limited, invalid_name, unavailable) and no token.
Needs scope coordinator:runner.
bearerAuthorizationBearer <JWT>An access token from the identity provider: a person's, or a customer's from the client credentials grant with an API key (developers.inorbit.hr). The gateway verifies it; the audience is iohr-api.
org_id*stringThe account's id: org in GET /v1/me.
iohr.connections.v1.MintRunnerGithubTokenRequest; path variables override their fields
application/json- body
iohr.connections.v1.MintRunnerGithubTokenRequest
fencing_token?stringint64lease_id?stringorg_id?stringiohr.connections.v1.MintRunnerGithubTokenResponse
application/json- response
iohr.connections.v1.MintRunnerGithubTokenResponse
detail*stringexpires_at*stringreason*stringrepository*stringtoken*stringimport { ApiError, Public } from "@inorbithr/sdk";// Reads INORBIT_TOKEN, or INORBIT_KEY_ID and INORBIT_KEY_SECRET.const api = Public.fromEnv();try { const { value } = await api.connections.mintRunnerGithubToken("<org_id>", {}); console.log(value);} catch (e) { if (!(e instanceof ApiError)) throw e; console.error(`${e.code}: ${e.problem} (request id ${e.raw.requestId})`); process.exitCode = 1;}npm install @inorbithr/sdk. Calls the package's public surface; an operation newer than your package needs the next release or a client generated for your account. The SDKs.
{ "detail": "string", "expires_at": "string", "reason": "string", "repository": "string", "token": "string"}