Skip to content

chore: deploy with a Worker-scoped Cloudflare token - #271

Merged
nemolize merged 1 commit into
mainfrom
fix-269-worker-scoped-cf-token
Nov 6, 2026
Merged

nemolize merged 1 commit into
mainfrom
fix-269-worker-scoped-cf-token

Conversation

@nemolize

@nemolize nemolize commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Summary

The deploy workflow no longer depends on the account-wide Cloudflare token shared across repositories. CLOUDFLARE_API_TOKEN now holds a token limited to this repository's Worker (Individual Workers Editor, this Worker only).

A Worker-scoped token cannot read account-wide settings. Older wrangler fails after upload with Authentication error [code: 10000] on the workers.dev subdomain lookup, so wrangler is bumped to a release that works without account-wide read.

Test plan

  • Token read back through the API: one policy, Individual Workers Editor, scoped to this Worker only
  • Repository secret CLOUDFLARE_API_TOKEN overwritten with the new token
  • The Deploy run on main after merge succeeds with the new token

Older wrangler needs account-wide read for the workers.dev subdomain lookup and fails with code 10000 under a Worker-scoped token.
@nemolize nemolize self-assigned this Nov 6, 2026
@nemolize
nemolize merged commit 6141f25 into main Nov 6, 2026
4 checks passed
@nemolize
nemolize deleted the fix-269-worker-scoped-cf-token branch November 6, 2026 14:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: replace the shared Cloudflare deploy token with a Worker-scoped one

1 participant