fix(ci): use AUTO_SYNC_TOKEN for auto-sync main->staging (Class D) #26
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "fix/auto-sync-use-devops-token"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Same shape as molecule-controlplane#29.
Cause
The auto-injected
GITEA_TOKENis per-job, scoped to this repo only. On Gitea 1.22.6 it lacks the API permissions auto-sync needs (open PR, push to feature branch, force-with-lease). On core,Auto-sync main → staging / sync-stagingfails 13s on every push to main.Fix
Replace
secrets.GITHUB_TOKEN->secrets.AUTO_SYNC_TOKEN. AUTO_SYNC_TOKEN is the devops-engineer persona PAT (per saved memoryfeedback_per_agent_gitea_identity_default).Prod state changes (already applied via Gitea API)
Orchestrator-acked Hongming GO Task #165.