Levain LabsLevain Labs

create_version_git_credential

Mint a short-lived credential for cloning and pushing a version. Returns the remote, the version's branch, and a username/password scoped to that one…

Mint a short-lived credential for cloning and pushing a version.

Returns the remote, the version's branch, and a username/password scoped to that one repository and valid for about an hour — hand it to a git credential helper rather than storing it. Mint a new one when it expires.

Parameters

NameTypeRequiredDescription
agent_idstringyes
versionintegeryes

On this page