DashboardcraftCraft workspace-level github override n…

Craft workspace-level github override needs partial schema, not GitHubGlobalConfigSchema

Category: gotcha
Confidence: 0.90
ID: 019f8985-3a77-7733-8869-a2895928d076
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 0goKXKlJTHOVwC4wG
Created: 2026-07-22 11:10:37
Updated: 2026-07-22 11:10:37

Content

Trap: reusing GitHubGlobalConfigSchema (requires owner+repo) for a workspace's per-workspace github override field looks natural — it's the same shape as top-level github. But a workspace override must allow specifying ONLY projectPath while inheriting owner/repo from the base config; requiring owner/repo again broke validateConfiguration with 'workspaces.<name>.github.owner: Required' for every workspace test config. Fix: give the workspace-level github field its own partial schema (all fields .optional()), while the top-level github schema stays required (non-passthrough per [[019f85aa-3d99-71cd-95ec-afc4cb7f065f]]). Found in getsentry/craft PR #848 (feat/workspaces-schema).

Move to: