sources.py
python
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14
Reconcile reviewed credential compatibility 32254cd939885d9…
Human
patch
8 days ago
| 1 | """Closed source-id vocabulary (§HGD.4.1).""" |
| 2 | |
| 3 | from __future__ import annotations |
| 4 | |
| 5 | SOURCE_IDS = frozenset( |
| 6 | { |
| 7 | "github_contents", |
| 8 | "github_meta", |
| 9 | "github_checks_advisory", |
| 10 | "musehub_read", |
| 11 | } |
| 12 | ) |
| 13 | BASELINE_SOURCE_IDS = frozenset({"github_contents", "github_meta"}) |
| 14 | OPTIONAL_SOURCE_IDS = frozenset({"github_checks_advisory", "musehub_read"}) |
| 15 | |
| 16 | |
| 17 | def is_known_source_id(source_id: str) -> bool: |
| 18 | """Return whether ``source_id`` is in the closed Auto v1 vocabulary.""" |
| 19 | return source_id in SOURCE_IDS |
File History
2 commits
sha256:106ef9e12cca7f3be3ffb2a6bd3abfa76f032dce453c9e5010d732a8d86f2e14
Reconcile reviewed credential compatibility 32254cd939885d9…
Human
patch
8 days ago
sha256:c87cf2c2f03da507f66f93922cb339a2cbebb33ad6372a6039032fb09a20da12
Reconcile reviewed Overseer recovery d47291d5d9030de5ebef71…
Human
minor
⚠
9 days ago