Download Archive
gitlab.download_archive
ActionBusiness appsconnection required
Calls GET /projects/{id}/repository/archive.{format}?sha={ref} and emits it base64-encoded.
Download a project repository snapshot (zip / tar.gz) as a file blob.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- GitLab
- Secret shape
- the GitLab personal/project access token
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 1 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 |
|---|---|---|---|---|---|
project Project id or 'group/project' path. | string | Yes | — | — | — |
ref Branch, tag or SHA. Empty = default branch. | string | No | — | — | — |
format Archive format. | string | No | zip | one of "zip", "tar.gz", "tar.bz2", "tar" | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"format": "zip"
}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
}Related GitLab nodes
Solutions with GitLab
See Download Archive run in a workflow.
In a technical demo we add the GitLab connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.