ReferenceHTTP APIGit Hub work

Read a workflow run in the session's repository

GET
/v1/sessions/{id}/github/workflow-runs/{run_id}

Reads one Actions run: its status, conclusion, workflow file and branch. Needs actions on in the agent's release under the workspace ceiling; any run in the repository can be read, not only ones the platform started.

Scope: sessions:read (API key or cookie session).

Authorization

headerAuthorizationBearer <token>

For servers and scripts: an API key sent as an HTTP bearer token, Bearer <key>. It holds exactly the scopes it was issued with; a key issued before scopes existed holds none. It never needs the CSRF header, and it cannot manage agents, members, teams or API keys. Issue one in the web console under Settings → API keys; each operation names the scope it needs.

Scope: sessions:read

Path Parameters

id*string

The session's id.

Match^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$
Formatuuid
run_id*integer

The GitHub Actions workflow run's id.

Range0 < value <= 9007199254740991

Response Body

The run.

application/json
  1. response
id*integer
Range0 < value <= 9007199254740991
path*string
head_branch*string|null
status*string|null
conclusion*string|null
html_url*string
Formaturi
Example Request
curl -X GET 'https://example.com/v1/sessions/497f6eca-6276-4993-bfeb-53cbbbba6f08/github/workflow-runs/1'
Example Response
{  "id": 9012345678,  "status": "completed",  "conclusion": "failure",  "path": ".github/workflows/deploy-preview.yml",  "head_branch": "main",  "html_url": "https://github.com/acme/sample-app/actions/runs/9012345678"}