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

synopsis
redline registry --org <name> --source <owner/name> [--token <string>] [--out <path>]

Flags

FlagDefaultWhat it does
--org <string>requiredThe GitHub organisation. Environment variable: ORG.
--source <string>requiredowner/name of the Redline source repository, recorded so a reader knows which estate the file describes. Environment variable: SOURCE.
--token <string>GH_TOKENA token with organisation read access.
--out <path>registry.jsonWhere to write the register.

--help prints the same list from the CLI you have installed.

Examples

Build the register

terminal
$ GH_TOKEN=<org-read-token> node dist/bin/redline.js registry --org acme --source acme/redline

Exit codes

CodeMeaning
0Success.
2A required option is missing, or a usage error.
4The organisation walk failed, for example on a bad token.