registry.github-account-sync ​
GHCR sync with image/version hydration for GitHub token or app connections
Discover GHCR packages and hydrate versions for GitHub-backed accounts.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Linear |
| Library | App-registry |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | UUID of the GitHub-backed RegistryAccount |
organization_uuid | uuid | Yes | — | Organization UUID for tenant isolation |
manage_account_state | boolean | No | — | When false, the parent DAG owns the account cached_sync_status; defaults to true |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
registry_account_uuid | uuid | Yes | — | Echoed registry account UUID |
organization_uuid | uuid | Yes | — | Echoed organization UUID |
backend_type | string | No | — | Backend type of the registry |
manage_account_state | boolean | No | — | Whether this workflow manages the account's cached_sync_status |
detected_auth_mode | string | No | — | Detected GitHub auth mode (token or app_installation) |
installation_repository_count | integer | No | — | Number of installation repositories listed |
installation_repositories | list | No | — | Internal: installation repositories carried to probe step |
discovered_repository_count | integer | No | — | Number of GHCR repositories discovered |
discovered_repositories | list | No | — | Internal: discovered repositories carried to reconcile step |
versions_by_full_name | json | No | — | Internal: discovered versions carried to hydrate step |
reconciled_repository_count | integer | No | — | Number of repositories present after reconciliation |
created_repository_count | integer | No | — | Number of repositories created during reconciliation |
updated_repository_count | integer | No | — | Number of repositories updated during reconciliation |
stale_repository_count | integer | No | — | Number of repositories marked stale during reconciliation |
hydrated_repository_count | integer | No | — | Number of repositories whose versions were hydrated |
hydrated_image_count | integer | No | — | Number of image rows hydrated |
hydrated_version_count | integer | No | — | Number of image-version rows hydrated |
completed_at | string | No | — | ISO-8601 completion timestamp |
failed_at | string | No | — | ISO-8601 failure timestamp |
failure_reason | string | No | — | Engine failure reason, present only on failed terminal state |
failure_type | string | No | — | Engine failure type classification (ADR-015 E2) |
failed_action | string | No | — | Action name that caused the failure (ADR-015 E2) |
failed_at_state | string | No | — | State name where the failure occurred |
failed_step | string | No | — | Failed DAG step name when reported by the engine |
failed_layer | integer | No | — | 1-based failed DAG layer number emitted by the engine |
error | string | No | — | Unexpected error message |
error_type | string | No | — | Unexpected error class or type |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
initiated | Yes | No | — | prepare | — |
hydrating_versions | No | No | — | complete | — |
listing_repositories | No | No | — | probe_packages | — |
preparing | No | No | — | list_installation_repositories | — |
probing_packages | No | No | — | reconcile_repositories | — |
reconciling | No | No | — | hydrate_versions | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
initiated | prepare | preparing | — |
preparing | list_installation_repositories | listing_repositories | — |
listing_repositories | probe_packages | probing_packages | — |
probing_packages | reconcile_repositories | reconciling | — |
reconciling | hydrate_versions | hydrating_versions | — |
hydrating_versions | complete | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "registry.github-account-sync",
"initial_data": {
"registry_account_uuid": "value",
"organization_uuid": "value"
}
}