Skip to content
Proud to collaborate with Microsoft for Startups

apphost.source.inspect ​

Inspect a public GitHub repository for AppHost source launch. Dockerfile wins; otherwise package.json with scripts.start. Private repos and git hosts other than GitHub are rejected.

Read a public GitHub tree and decide Dockerfile vs package.json.

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-apphost
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
git_urlstringYes—Public GitHub URL (https://github.com/owner/repo)
refstringNo—Branch, tag, or SHA. Default is the repository default branch
dockerfilestringNo—Dockerfile path relative to context_dir (default Dockerfile)
context_dirstringNo—Build context directory inside the repo (default repo root)
portintegerNo8080Listen port used when synthesizing a Node Dockerfile

Output Schema ​

FieldTypeRequiredDefaultDescription
git_urlstringNo——
providerstringYes——
ownerstringYes——
repostringYes——
refstringYes——
shastringYes——
clone_urlstringYes——
source_locationstringYes——
strategystringYes——
has_dockerfilebooleanYes——
has_package_jsonbooleanYes——
dockerfilestringNo——
context_dirstringNo——
generated_dockerfilestringNo——
start_scriptstringNo——
portintegerNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepjsonNo——
failed_layerjsonNo——
errorstringNo——
error_typestringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—executeWill inspect the git URL
completedNoYesYes—Source classified
failedNoYesNo—Inspect rejected

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

Outcomes ​

OutcomeTypeDescriptionState Data Keys
inspectedSUCCESSSource classified for image buildstrategy, sha, clone_url
failedFAILUREApphost workflow failedfailure_reason

API Usage ​

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

{
  "workflow_type": "apphost.source.inspect",
  "initial_data": {
    "git_url": "value"
  }
}