artifact_id parameter
Download an artifact
Gets a redirect URL to download an archive for a repository. This URL expires after 1 minute. Look for Location:
in
the response header to find the URL for the download. The :archive_format
must be zip
. 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.
Path Parameters
Response
302
Response
Response
Path Parameters
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.
Path Parameters
job_id parameter
Response
200 application/json
Response
Response
Job
Information of a job execution in a workflow run
The id of the job.
Example:21
The id of the associated workflow run.
Example:5
Example:https://api.github.com/repos/github/hello-world/actions/runs/5
Attempt number of the associated workflow run, 1 for first attempt and higher if the workflow was re-run.
Example:1
Example:MDg6Q2hlY2tSdW40
The SHA of the commit that is being run.
Example:009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d
Example:https://api.github.com/repos/github/hello-world/actions/jobs/21
Example:https://github.com/github/hello-world/runs/4
The phase of the lifecycle that the job is currently in.
Allowed values:queuedin_progresscompleted
Example:queued
The outcome of the job.
Example:success
The time that the job started, in ISO 8601 format.
Example:2019-08-08T08:00:00-07:00
The time that the job finished, in ISO 8601 format.
Example:2019-08-08T08:00:00-07:00
The name of the job.
Example:test-coverage
Steps in this job.
Show Child Parameters
Example:https://api.github.com/repos/github/hello-world/check-runs/4
Path Parameters
Download job logs for a workflow run
Gets a redirect URL to download a plain text file of logs for a workflow job. This link expires after 1 minute. Look
for Location:
in the response header to find the URL for the download. 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.
Path Parameters
job_id parameter
Response
302
Response
Response
Path Parameters
Get GitHub Actions permissions for a repository
Gets the GitHub Actions permissions policy for a repository, including whether GitHub Actions is enabled and the actions allowed to run in the repository.
You must authenticate using an access token with the repo
scope to use this
endpoint. GitHub Apps must have the administration
repository permission to use this API.
Path Parameters
Response
200 application/json
Response
Response
actions-repository-permissions
Whether GitHub Actions is enabled on the repository.
The permissions policy that controls the actions that are allowed to run. Can be one of: all
, local_only
, or selected
.
Allowed values:alllocal_onlyselected
The API URL to use to get or set the actions that are allowed to run, when allowed_actions
is set to selected
.
Path Parameters
Set GitHub Actions permissions for a repository
Sets the GitHub Actions permissions policy for enabling GitHub Actions and allowed actions in the repository.
If the repository belongs to an organization or enterprise that has set restrictive permissions at the organization or enterprise levels, such as allowed_actions
to selected
actions, then you cannot override them for the repository.
You must authenticate using an access token with the repo
scope to use this endpoint. GitHub Apps must have the administration
repository permission to use this API.
Path Parameters
Body
application/json
Body
Whether GitHub Actions is enabled on the repository.
The permissions policy that controls the actions that are allowed to run. Can be one of: all
, local_only
, or selected
.
Allowed values:alllocal_onlyselected
Response
204
Response
Response