Skip to content
Proud to collaborate with Microsoft for Startups

github.git.credential-lease ​

Issue a repository-scoped one-time Git credential to the trusted publication broker.

Mint a one-time GitHub App credential restricted to the repository on an actively leased exact-OID publication attempt.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
attempt_uuidstringYes——
broker_uuidstringYes——
lease_uuidstringYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
attempt_uuidstringYes——
providerstringYes——
repositorystringYes——
usernamestringYes——
tokenstringYes——
expires_atstringYes——
scopelistYes——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_stepstringNo——
failed_layerstringNo——
failed_at_statestringNo——
errorstringNo——
error_typestringNo——
failed_atstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "github.git.credential-lease",
  "initial_data": {
    "organization_uuid": "value",
    "attempt_uuid": "value",
    "broker_uuid": "value",
    "lease_uuid": "value"
  }
}