Get a job for a workflow run
Gets a specific job in a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.
/repos/{owner}/{repo}/actions/jobs/{job_id}- Source
github-v3-rest.json- Revision
f5f067c1e6f6- Active snapshot
85e53e3d0d65
Request
Path Parameters
- owner stringrequired
- repo stringrequired
- job_id integerrequired
job_id parameter
Responses
Response
Example: https://api.github.com/repos/github/hello-world/check-runs/4
The time that the job finished, in ISO 8601 format.
Example: 2019-08-08T08:00:00-07:00
The outcome of the job.
Example: success
The SHA of the commit that is being run.
Example: 009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d
Example: https://github.com/github/hello-world/runs/4
The id of the job.
Example: 21
The name of the job.
Example: test-coverage
Example: MDg6Q2hlY2tSdW40
Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
Example: 1
The id of the associated workflow run.
Example: 5
Example: https://api.github.com/repos/github/hello-world/actions/runs/5
The time that the job started, in ISO 8601 format.
Example: 2019-08-08T08:00:00-07:00
The phase of the lifecycle that the job is currently in.
Example: queued
steps array[object]optionalSteps in this job.
Steps in this job.
items object
The time that the job finished, in ISO 8601 format.
Example: 2019-08-08T08:00:00-07:00
The outcome of the job.
Example: success
The name of the job.
Example: test-coverage
Example: 1
The time that the step started, in ISO 8601 format.
Example: 2019-08-08T08:00:00-07:00
The phase of the lifecycle that the job is currently in.
Example: queued
Example: https://api.github.com/repos/github/hello-world/actions/jobs/21