Repository navigation
Closed
Labels
proposalFiled by the loop. Removed on the first human verb.
Description
Summary
Every pull request in this repository has failed the required Smoke check since 2026-11-10 18:29Z. Cloudflare rejects CLOUDFLARE_API_TOKEN with Invalid access token [code: 9109], so the preview is never published and no smoke spec runs. No branch's diff is the cause, and no automated run can fix it — replacing an Actions secret needs a human.
Approach
.github/workflows/ci.yml:212— thePublish the previewstep runswrangler versions upload --config wrangler.jsonc --preview-alias pr-<n>throughcloudflare/wrangler-action, authenticating withsecrets.CLOUDFLARE_API_TOKENandsecrets.CLOUDFLARE_ACCOUNT_ID(ci.yml:217-220).- The secret is set.
ci.yml:140'sHAS_SECRETSguard passed and the lane reportedREASON: publish, notno-credentials. Cloudflare answers/accountswithInvalid access token [code: 9109]and/accounts/***/workers/services/sahajatlas-webwithAuthentication error [code: 10000]. Both are token-level: expired, revoked, or no longer scoped to Workers. - Mint a replacement Cloudflare API token with Workers Scripts edit permission on the account
CLOUDFLARE_ACCOUNT_IDnames, and set it asCLOUDFLARE_API_TOKENin this repository's Actions secrets. ConfirmCLOUDFLARE_ACCOUNT_IDstill matches that account. - No code change belongs in this ticket.
Acceptance criteria
- On a same-repo pull request, the
Publish the previewstep returns a preview address instead ofcode: 9109. -
Smokeconcludessuccesson an open pull request whose diff touches no CI file. -
.github/workflows/ci.ymlis unchanged.
Verification checklist
- Re-run
Smokeon an open pull request and read thePublish the previewstep for the Cloudflare error codes. -
gh api repos/sydevs/SahajAtlasWeb/actions/workflows/ci.yml/runs --jq '.workflow_runs[0].conclusion'returnssuccess.
Notes
- Last green run:
42870487851, 2026-11-10T17:59Z. First failure:42875675827, 18:29Z. Every run since has failed identically, on human branches as well as bot ones —chore/pin-playwright-mcp, run42923603741. - Do not weaken the gate to clear this. The lane fails hard rather than report a green check that read nothing, and the step's own comment names chore(build): make preview discovery survive a slow cloudflare deploy #132's "just re-run it" habit as the reason. Re-running repeats the upload and fails the same way.
Workers Builds: sahajatlas-designstays green because Cloudflare's Git integration holds a separate credential.- Found by
fix-cion chore(contracts): re-sync copied contracts from SahajCloud #384, which spent its threeciFixIterationspasses on this and pushed nothing.
Metadata
Metadata
Assignees
Labels
proposalFiled by the loop. Removed on the first human verb.
Type
Fields
Priority
High
Hold Until
None yet
Projects
- StatusShow more project fieldsDone
Activity
Ardnived commentedon Nov 11, 2026
Resolved by updating the secret. No code change.
Cause. The Cloudflare token was rolled on 2026-11-10, when Workers Scripts: Edit was added to it. Rolling a token invalidates its old value at once, but the new value didn't reach GitHub. The secret is org-level (
sydevs→ Settings → Secrets and variables → Actions), not a repository secret as the ticket assumed, and it still showedupdated_at2026-10-16. The failures started at 18:29Z that day.Fix. The rolled value was saved to the org secret
CLOUDFLARE_API_TOKENon 2026-11-11 at 17:03Z.Verification.
43047032645attempt 2, whose diff touches onlysrc/types/payload/payload-types.ts.Publish the previewreturnedhttps://pr-384-sahajatlas-web.contact-c66.workers.devwith no9109error, and the smoke specs passed.43063981293(pull request) and43065084029(merge queue for chore(contracts): re-sync copied contracts from SahajCloud #384)..github/workflows/ci.ymlis unchanged.Follow-up. SahajCloud's preview-asset cleanup now reads the same org secret, in sydevs/SahajCloud#1111. That makes the token shared: a future rotation must update the org secret, and a re-scope must keep Workers Scripts (Edit) for this repo and Images (Edit), Stream (Edit) and R2 Object Read & Write for SahajCloud.