decomposer: fix validation failure for Migrate the kab_ingestion domain models, ports, GitHub SCM connector, and SharePoint CMS connector into the repository's app/ package.; Wire the migrated ingestion components into the agent application entry point, card, settings, triggers, governance, publication, and validation layers.; Populate every remaining placeholder file with working application, package, test, dependency, and Kubernetes content.; Verify the migrated agent and completed repository end to end.
Some checks failed
ci / test (push) Failing after 7s
Some checks failed
ci / test (push) Failing after 7s
This commit is contained in:
15
app/settings.py
Normal file
15
app/settings.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from dataclasses import dataclass
|
||||
import os
|
||||
|
||||
@dataclass(frozen=True)
|
||||
class Settings:
|
||||
github_token: str = ""
|
||||
sharepoint_site_url: str = "https://sharepoint.invalid"
|
||||
allowed_repositories: tuple[str, ...] = ()
|
||||
require_approval: bool = True
|
||||
environment: str = "development"
|
||||
|
||||
@classmethod
|
||||
def from_env(cls) -> "Settings":
|
||||
repos = tuple(x.strip() for x in os.getenv("ALLOWED_REPOSITORIES", "").split(",") if x.strip())
|
||||
return cls(os.getenv("GITHUB_TOKEN", ""), os.getenv("SHAREPOINT_SITE_URL", cls.sharepoint_site_url), repos, os.getenv("REQUIRE_APPROVAL", "true").lower() != "false", os.getenv("ENVIRONMENT", "development"))
|
||||
Reference in New Issue
Block a user