fix(ci): publish-workspace-server-image — remove mandatory AUTO_SYNC_TOKEN check (internal#561) #584

Closed
infra-runtime-be wants to merge 0 commits from fix/publish-workspace-server-image-optional-token into main
Member

Summary

Fixes the publish-workspace-server-image / build-and-push workflow which has been permanently failing since commit 982dac0904 (PR #557).

The Pre-clone manifest deps step hard-exits if AUTO_SYNC_TOKEN is not set:

if [ -z "${MOLECULE_GITEA_TOKEN}" ]; then
    echo "::error::AUTO_SYNC_TOKEN secret is empty"
    exit 1
fi

This check is wrong: manifest.json explicitly records all listed repos as public on git.moleculesai.app (OSS surface contract). The token is only needed for private repos, which are handled at provision-time via the per-tenant credential resolver. Anonymous clone works fine.

Removing the hard exit lets the workflow run in both cases:

  • Token absent → anonymous clone succeeds for public repos
  • Token set → authenticated clone still works

Test plan

  • publish-workspace-server-image workflow runs successfully on this PR
  • Both platform and tenant images push to ECR successfully
  • No regression: manifest repos cloned correctly

🤖 Generated with Claude Code

## Summary Fixes the `publish-workspace-server-image / build-and-push` workflow which has been permanently failing since commit 982dac0904 (PR #557). The `Pre-clone manifest deps` step hard-exits if `AUTO_SYNC_TOKEN` is not set: ```bash if [ -z "${MOLECULE_GITEA_TOKEN}" ]; then echo "::error::AUTO_SYNC_TOKEN secret is empty" exit 1 fi ``` This check is wrong: `manifest.json` explicitly records all listed repos as **public** on git.moleculesai.app (OSS surface contract). The token is only needed for private repos, which are handled at provision-time via the per-tenant credential resolver. Anonymous clone works fine. Removing the hard exit lets the workflow run in both cases: - Token absent → anonymous clone succeeds for public repos ✅ - Token set → authenticated clone still works ✅ ## Test plan - [ ] `publish-workspace-server-image` workflow runs successfully on this PR - [ ] Both platform and tenant images push to ECR successfully - [ ] No regression: manifest repos cloned correctly 🤖 Generated with [Claude Code](https://claude.com/claude-code)
infra-runtime-be closed this pull request 2026-05-11 22:11:52 +00:00
All checks were successful
Lint curl status-code capture / Scan workflows for curl status-capture pollution (pull_request) Successful in 15s
Block internal-flavored paths / Block forbidden paths (pull_request) Successful in 26s
CI / Detect changes (pull_request) Successful in 1m14s
E2E API Smoke Test / detect-changes (pull_request) Successful in 1m12s
E2E Staging Canvas (Playwright) / detect-changes (pull_request) Successful in 50s
Secret scan / Scan diff for credential-shaped strings (pull_request) Successful in 17s
qa-review / approved (pull_request) Successful in 18s
gate-check-v3 / gate-check (pull_request) Successful in 29s
Handlers Postgres Integration / detect-changes (pull_request) Successful in 55s
Runtime PR-Built Compatibility / detect-changes (pull_request) Successful in 54s
security-review / approved (pull_request) Successful in 21s
sop-tier-check / tier-check (pull_request) Successful in 15s
audit-force-merge / audit (pull_request) Has been skipped
CI / Platform (Go) (pull_request) Successful in 10s
CI / Shellcheck (E2E scripts) (pull_request) Successful in 8s
CI / Canvas (Next.js) (pull_request) Successful in 12s
CI / Python Lint & Test (pull_request) Successful in 11s
E2E API Smoke Test / E2E API Smoke Test (pull_request) Successful in 17s
E2E Staging Canvas (Playwright) / Canvas tabs E2E (pull_request) Successful in 13s
Handlers Postgres Integration / Handlers Postgres Integration (pull_request) Successful in 8s
Runtime PR-Built Compatibility / PR-built wheel + import smoke (pull_request) Successful in 13s
CI / Canvas Deploy Reminder (pull_request) Has been skipped
CI / all-required (pull_request) Successful in 6s
Required
Details

Pull request closed

Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: molecule-ai/molecule-core#584