Canonical: https://weaveos.com/reference/github/download-actions-artifacts

1. [Software capabilities](https://weaveos.com/reference)
2. /[GitHub](https://weaveos.com/reference/github)
3. /Download GitHub Actions artifacts

GitHub capability

# Download GitHub Actions artifacts

Use the REST API to download an artifact by ID as a ZIP. Use gh run download to select and extract artifacts from a workflow run.

Documentation reviewed November 26, 2026

## Ways to do it

API

### GET /repos/{owner}/{repo}/actions/artifacts/{artifact\_id}/zip

Request a ZIP download for one artifact and follow the redirect.

- Requirements

  Artifact ID and repository access. A fine-grained token for a private repository needs Actions read permission.

- Limitations

  Expired artifacts return HTTP 410. The redirect for an available artifact lasts one minute.

[Read source: GitHub REST API download an artifact ↗](https://docs.github.com/en/rest/actions/artifacts#download-an-artifact)

CLI

### gh run download \<run-id> --name \<artifact-name>

Select an artifact from a run by name or use --pattern to select several. The CLI extracts the downloaded files.

- Requirements

  GitHub CLI authenticated for the repository, the run ID, and an artifact name or pattern.

- Limitations

  The command extracts the archive. Use the REST download if you need the ZIP itself.

Example

```
gh run download "$RUN_ID" --repo "$OWNER/$REPO" --name "$ARTIFACT_NAME" --dir ./artifacts
```

[Read source: GitHub CLI run download ↗](https://cli.github.com/manual/gh_run_download)

Interface

### Actions → workflow run → Artifacts

Open a run and download an artifact by name from its summary.

- Requirements

  Sign in to GitHub with read access to the repository.

- Limitations

  You can only download artifacts while they’re available under the repository’s retention policy.

[Read source: GitHub download workflow artifacts ↗](https://docs.github.com/en/actions/how-tos/manage-workflow-runs/download-workflow-artifacts)

## More from GitHub

[View all GitHub capabilities →](https://weaveos.com/reference/github)

- [Read GitHub Actions job logs↗](https://weaveos.com/reference/github/read-actions-job-logs)
- [Read checks on a GitHub pull request↗](https://weaveos.com/reference/github/read-pull-request-checks)
- [List GitHub Actions workflow runs↗](https://weaveos.com/reference/github/list-actions-workflow-runs)
- [Read a GitHub pull request diff↗](https://weaveos.com/reference/github/read-pull-request-diff)
