Custom Sources allow Infram to synchronize scripts and snippets from external Git repositories.
- Shared operational command libraries across teams
- Environment-specific runbooks (prod/stage/dev)
- Centralized script governance with pull-request workflows
Source synchronization is controlled by:
ENABLE_SOURCE_SYNC=trueto enable periodic sync workerENABLE_SOURCE_SYNC=falseto disable sync worker (default)
- Open Settings -> Sources.
- Select Add Source.
- Provide:
- display name
- repository URL
- Save and trigger initial sync.
- Use read-only deploy keys or tokens where possible.
- Keep script repositories private when containing internal logic.
- Separate production and non-production sources.
- Require code review on script/snippet changes.
- Keep scripts idempotent and rollback-aware.
- Source status shows healthy in UI.
- Expected scripts appear in the Scripts tab.
- Expected snippets appear in terminal/snippet picker.
- Metadata tags render correctly (
@name,@description,@os).
- No sync activity: verify
ENABLE_SOURCE_SYNC=true. - Auth failures: check repository credentials/keys.
- Unexpected content: review default branch and source URL.