Download Archive
github.download_archive
ActionBusiness appsconnection required
Calls GET /repos/{owner}/{repo}/zipball/{ref} and emits the archive base64-encoded.
Download a repository snapshot (zip or tar.gz) as a file blob.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- GitHub
- Secret shape
- the GitHub personal access token
- Resolved by
- config.connection_id, else node.connection_id, else the tenant's sole GitHub connection
Configuration
4 fields, 2 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
owner Repository owner (user or org). | string | Yes | — | — | octocat |
repo Repository name. | string | Yes | — | — | hello-world |
ref Branch, tag or commit SHA. Empty = default branch. | string | No | — | — | — |
format Archive format. | string | No | zipball | one of "zipball", "tarball" | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"format": "zipball",
"owner": "octocat",
"repo": "hello-world"
}Output
One shape.
file
| Field | Type | Example |
|---|---|---|
ok | boolean | true |
file_content The file, base64-encoded. | string | — |
content_encoding | string | base64 |
filename | string | app-main.zip |
content_type | string | application/zip |
size Raw size in bytes (before base64). | number | — |
{
"content_encoding": "base64",
"content_type": "application/zip",
"file_content": "",
"filename": "app-main.zip",
"ok": true,
"size": 0
}Solutions with GitHub
See Download Archive run in a workflow.
In a technical demo we add the GitHub connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.