DashboardcraftCRAFT_PUBLISH_STATE_GITHUB_REPO identit…

CRAFT_PUBLISH_STATE_GITHUB_REPO identity override

Category: gotcha
Confidence: 1.00
ID: 01a03e3a-297c-70c6-8159-f9b4b3c12d55
Project ID: e16af391-c497-4837-b681-c849a5514499
Cross-project: No
Recalled in other projects: 0
Source session: 1bwAST7ENFvDRuqqJ
Created: 2026-08-26 13:19:54
Updated: 2026-08-26 13:19:54

Content

Trap: using the workspace-resolved getGlobalGitHubConfig() for publish-state identity appears consistent, but a workspace may publish through a release repository different from the controller’s checkout repository. The controller then cannot locate Craft’s retry state. Fix: getPublishStateGitHubConfig() accepts only owner/repo from CRAFT_PUBLISH_STATE_GITHUB_REPO and applies it only to getPublishStatePath(); target construction and publishing retain the resolved workspace GitHub config. Reject malformed overrides with ConfigurationError. Chose a narrow state-key override over replacing global GitHub configuration because replacing it silently redirects publish behavior.

Move to: