Back to GithubGet an artifact
Gets a specific artifact 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.
artifact_id:
type: integer
description: The unique identifier of the artifact.
required:
- owner
- repo
- artifact_id
title: Parameters
Output
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