Skip to content
Proud to collaborate with Microsoft for Startups

github.installation-finalize ​

Link a GitHub App installation to an organization once the signed webhook has arrived

Finalize a GitHub App installation after GitHub redirects back to Orkestia

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-github
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
organization_uuidstringYes——
github_installation_refintegerNo——
setup_actionstringNo——
statestringNo—SPA install nonce echoed by GitHub
codestringNo—GitHub OAuth code (OAuth-on-install)
actorstringNo——
workflow_run_idstringNo—Parent DAG run ID

Output Schema ​

FieldTypeRequiredDefaultDescription
statusstringYes——
github_installation_refintegerNo——
installation_uuiduuidNo——
connection_uuiduuidNo——
account_loginstringNo——
repository_countintegerNo——
retryablebooleanNo——
messagestringNo——
finalized_atstringNo——
workflow_run_idstringNo—Parent DAG run ID
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

States ​

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

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Business Errors ​

CodeMessage Template
ORGANIZATION_NOT_FOUNDOrganization {organization_uuid} not found
INSTALLATION_REF_REQUIREDgithub_installation_ref is required unless setup_action=request
INSTALLATION_ALREADY_LINKEDGitHub installation {github_installation_ref} is already linked to another organization
GITHUB_INSTALLATION_AUTHORIZATION_REQUIREDA verified GitHub App user authorization callback is required
GITHUB_INSTALLATION_AUTHORIZATION_FAILEDGitHub App user authorization could not be verified
GITHUB_INSTALLATION_ACCESS_DENIEDThe authenticated GitHub user cannot access installation
GITHUB_INSTALLATION_INTENT_CONFLICTThe GitHub installation callback does not match its original organization intent

API Usage ​

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

{
  "workflow_type": "github.installation-finalize",
  "initial_data": {
    "organization_uuid": "value"
  }
}