IF Commons GitHub

mod

Written to: 4 requirements: 4 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-integrations-github-connector FR-001, 0001-integrations-github-connector FR-002, 0001-integrations-github-connector FR-003, 0001-integrations-github-connector FR-004

The reference connector of Integrations for one organization of a code host's cloud service (commons integrations-github 0001-integrations-github-connector): read-only, with governance as data, the posture of the organization (two-factor requirement, public repositories, repositories), the repositories as records and entities and the administrators as accounts. It is written against the ReadPort of Integrations and so cannot write, and it names a vendor, which the core of Integrations never does.

Source: commons/integrations-github/src/mod.ts

Mutation score of this file: 51.1% (108 of 221 changes to its code were not noticed by a test).

3 of 5 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

HOSTconstno test imports it
const HOST: "api.github.com"

The API's host, which the transport policy names.

POLICIESconst
const POLICIES: readonly PosturePolicy[]

The posture policies of the organization, as data of GRC's vocabulary; the control urns are the consumer's to attach.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

GithubErrortypeno test imports it
type GithubError = { readonly kind: "id"; readonly what: string } | DefinitionError;

Why the connector cannot be made.

governanceForfunction
function governanceFor(org: string): Result<ConnectorGovernance, GithubError>

The governance of the connector for org: read-only scopes, a daily cadence, its entities, the generic denylist and HTTPS to the API's host with the system roots.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

githubConnectorfunction
function githubConnector(org: string): Result<Connector, GithubError>

The connector for one organization, or why it cannot be made.

Imported by 4 tests of the run (4 passed, 0 failed): the library's results

Titles, headings, exports, tables, columns and requirements. Esc closes.