Back to GithubList workflow run artifacts
Lists artifacts for 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.
Input
type: object
properties:
parameters:
type: object
properties:
owner:
type: string
description: The account owner of the repository. The name is not case sensitive.
repo:
type: string
description: The name of the repository. The name is not case sensitive.
run_id:
type: integer
description: The unique identifier of the workflow run.
per_page:
type: integer
default: 30
description: The number of results per page (max 100).
page:
type: integer
default: 1
description: Page number of the results to fetch.
required:
- owner
- repo
- run_id
title: Parameters
Output
type: object
properties:
total_count:
type: integer
artifacts:
type: array
items:
type: object
title: Artifact
properties:
id:
type: integer
example: 5
node_id:
type: string
example: MDEwOkNoZWNrU3VpdGU1
name:
description: The name of the artifact.
type: string
example: AdventureWorks.Framework
size_in_bytes:
description: The size in bytes of the artifact.
type: integer
example: 12345
url:
type: string
example: https://api.github.com/repos/github/hello-world/actions/artifacts/5
archive_download_url:
type: string
example: >-
https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip
expired:
description: Whether or not the artifact has expired.
type: boolean
created_at:
type: string
format: date-time
nullable: true
expires_at:
type: string
format: date-time
nullable: true
updated_at:
type: string
format: date-time
nullable: true
workflow_run:
type: object
properties:
id:
example: 10
type: integer
repository_id:
example: 42
type: integer
head_repository_id:
example: 42
type: integer
head_branch:
example: main
type: string
head_sha:
example: 009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d
type: string