Skip to content
Proud to collaborate with Microsoft for Startups

github.git.cleanup-credential-lease ​

Issue a repository-scoped one-time Git credential to the trusted published-ref cleanup broker.

Mint a one-time GitHub App credential restricted to the repository on an actively leased exact-OID published-ref cleanup task.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuiduuidYes——
cleanup_task_uuidstringYes——
claim_uuidstringYes——
broker_uuidstringYes——
binding_uuidstringYes——

Output Schema ​

FieldTypeRequiredDefaultDescription
cleanup_task_uuidstringYes——
binding_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.cleanup-credential-lease",
  "initial_data": {
    "organization_uuid": "value",
    "cleanup_task_uuid": "value",
    "claim_uuid": "value",
    "broker_uuid": "value"
  }
}