Sign in
Docs
API referenceConnections

API reference

Get a GitHub workflow run

Have a token? Manage tokens in the console
GET
/v1/accounts/orgs/{org_id}/connections/github/workflow-runs/{run_id}

One GitHub Actions workflow run of one of the account's repositories, through the account's installation of InOrbit's GitHub App: its status, conclusion (empty until completed), head sha, head branch, event and creation time, and behind_main, true only when the run's head is a strict ancestor of the default branch's head (not equal to it, not diverged). behind_main_observation says whether that was observed or why not, and main_head_sha is the commit it was judged against. An unknown run is not found; a repository the account's installation does not list is permission denied.

Needs scope connections:read.

Authorization

bearer
headerAuthorizationBearer <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.

Path Parameters

org_id*string

The account's id: org in GET /v1/me.

run_id*string

The workflow run's id, as GitHub numbers it, a decimal string.

Query Parameters

repository?string

The repository, owner/name.

Response Body

iohr.connections.v1.GetGithubWorkflowRunResponse

application/json
  1. response

iohr.connections.v1.GetGithubWorkflowRunResponse

behind_main*boolean
behind_main_observation?

iohr.connections.v1.GithubObservation

conclusion*string
created_at*string
default_branch*string
event*string
evidence_id*string
head_branch*string
head_sha*string
main_head_sha*string
observed_at*string
repository*string
run_id*string
status*string
import { 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.getGithubWorkflowRun("<org_id>", "<run_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.

Example Response
{  "behind_main": true,  "behind_main_observation": {    "detail": "string",    "evidence_id": "string",    "observed": true,    "reason": "string"  },  "conclusion": "string",  "created_at": "string",  "default_branch": "string",  "event": "string",  "evidence_id": "string",  "head_branch": "string",  "head_sha": "string",  "main_head_sha": "string",  "observed_at": "string",  "repository": "string",  "run_id": "string",  "status": "string"}