feat(web): show GitHub readiness in AwoooP tenants

This commit is contained in:
Your Name
2026-05-21 10:04:00 +08:00
parent 56d725268d
commit 77e9f45db7
8 changed files with 339 additions and 3 deletions

View File

@@ -280,6 +280,7 @@ def validate(root: Path) -> None:
"s2_65_awooop_contracts_github_primary_readiness_candidate",
"s2_66_awooop_approvals_github_primary_readiness_boundary",
"s2_67_awooop_home_github_primary_readiness_summary",
"s2_68_awooop_tenants_github_primary_readiness_scope",
]
assert_equal(
"progress_delta_ledger.delta_ids",
@@ -384,6 +385,11 @@ def validate(root: Path) -> None:
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_awooop_home_github_primary_readiness_summary",
)
assert_contains(
"rollup.next_safe_actions.action_ids",
[item["action_id"] for item in rollup["next_safe_actions"] if isinstance(item, dict)],
"show_awooop_tenants_github_primary_readiness_scope",
)
assert_equal("rollout_policy.schema_version", rollout_policy["schema_version"], "security_rollout_policy_v1")
assert_equal("rollout_policy.default_mode", rollout_policy["default_mode"], "observe")
@@ -5224,6 +5230,60 @@ def validate(root: Path) -> None:
key,
)
assert_text_contains(
"awooop_tenants_page.github_tenant_scope_panel",
awooop_tenants_page,
"GitHubTenantReadinessScopePanel",
)
assert_text_contains(
"awooop_tenants_page.github_tenant_scope_metrics",
awooop_tenants_page,
"githubTenantReadinessMetrics",
)
assert_text_contains(
"awooop_tenants_page.github_tenant_scope_iwooos_link",
awooop_tenants_page,
'href="/iwooos"',
)
for text in [
"AWOOOI first tenant source-control scope",
"S4.9 Gitea inventory owner attestation",
"S4.10 GitHub target owner decision",
"S4.12 workflow / secret name owner response",
"tenant_source_control_scope_accepted=false",
"repo_owner_response_accepted=false",
"repo_creation_authorized=false",
"refs_mutation_authorized=false",
"github_primary_switch_authorized=false",
"gitea_disablement_authorized=false",
"tenant_policy_mutation_authorized=false",
"runtime_execution_authorized=false",
"action_buttons_allowed=false",
]:
assert_text_contains("awooop_tenants_page.github_tenant_scope_boundary", awooop_tenants_page, text)
for key in [
"title",
"subtitle",
"badge",
"openIwooos",
"scopeRefsTitle",
"boundaryLabel",
"boundaryTitle",
"boundaryDetail",
"metrics",
"scopeRefs",
]:
assert_contains(
"web_messages.zh-TW.awooop.tenants.githubTenantReadinessScope",
list(web_messages_zh["awooop"]["tenants"]["githubTenantReadinessScope"].keys()),
key,
)
assert_contains(
"web_messages.en.awooop.tenants.githubTenantReadinessScope",
list(web_messages_en["awooop"]["tenants"]["githubTenantReadinessScope"].keys()),
key,
)
assert_text_contains(
"awooop_runs_page.security_run_state_panel",
awooop_runs_page,