redline registry
Build registry.json, the list of onboarded repositories, by walking the organisation.
Walks the organisation, reads the .redline.json each repository carries, and writes registry.json: every onboarded repository with its profile, vendors, rung, capabilities and standards version. redline sync uses it to know who to update, and the dashboard uses it for coverage. Nobody edits the list by hand; a repository that removes Redline drops out on the next run.
Where it runs: From a built checkout of the Redline source repository. The registry workflow runs it nightly. It needs a token with organisation read access, and writes to nothing it walks.
Synopsis
redline registry --org <name> --source <owner/name> [--token <string>] [--out <path>]Flags
| Flag | Default | What it does |
|---|---|---|
--org <string> | required | The GitHub organisation. Environment variable: ORG. |
--source <string> | required | owner/name of the Redline source repository, recorded so a reader knows which estate the file describes. Environment variable: SOURCE. |
--token <string> | GH_TOKEN | A token with organisation read access. |
--out <path> | registry.json | Where to write the register. |
--help prints the same list from the CLI you have installed.
Examples
Build the register
$ GH_TOKEN=<org-read-token> node dist/bin/redline.js registry --org acme --source acme/redline
Exit codes
| Code | Meaning |
|---|---|
0 | Success. |
2 | A required option is missing, or a usage error. |
4 | The organisation walk failed, for example on a bad token. |
Related
- redline sync
- Distribution and drift
- All commands and the shared exit codes
- Source:
cli/registry/discover.ts