Stitch / docs

Factory

Declare one repository workflow in stitch-factory.yaml.

Store stitch-factory.yaml at the repository root, with no leading dot. Stitch reconciles it from the connected repository's default branch. Use local key values to link each trigger to a harness and sandbox.

Schema

Factory JSON Schema · Environment schema

FieldContract
schemaVersion1
name, descriptionFactory name and optional description
execution.environmentVariablesInline values or managed secret references; required array
harnessesAt least one harness; unique key
sandboxesAt least one sandbox; unique key
triggersAt least one trigger; unique key; existing harness/sandbox references

Keys match ^[a-z][a-z0-9_-]{0,63}$. Unknown fields are rejected. Environment bindings have a key, source, and targets (setup, harness, or both). Use value for source: inline; use secretName for source: managed.

execution:
  environmentVariables:
    - key: SERVICE_TOKEN
      source: managed
      secretName: SERVICE_TOKEN
      targets: [harness]

Apply changes

Validate offline, validate against the connected repository, then push approved changes to the default branch. Inspect the application for sync errors. enabled: false keeps a trigger inactive. Validation alone never starts a run.

On this page