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.

FieldTypeRequiredDefaultConstraintsExample
owner
Repository owner (user or org).
stringYes——octocat
repo
Repository name.
stringYes——hello-world
ref
Branch, tag or commit SHA. Empty = default branch.
stringNo———
format
Archive format.
stringNozipballone 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

FieldTypeExample
ok
booleantrue
file_content
The file, base64-encoded.
string—
content_encoding
stringbase64
filename
stringapp-main.zip
content_type
stringapplication/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
}

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.