Skip to content

ci: prefer CLOUDFLARE_R2_TOKEN in sync-install-sh — Pages token lacks R2 scope#100

Merged
TeoSlayer merged 1 commit into
mainfrom
ci/r2-token-fallback
Jul 7, 2026
Merged

ci: prefer CLOUDFLARE_R2_TOKEN in sync-install-sh — Pages token lacks R2 scope#100
TeoSlayer merged 1 commit into
mainfrom
ci/r2-token-fallback

Conversation

@TeoSlayer

Copy link
Copy Markdown
Contributor

The first real sync run failed at the R2 upload with 403 code 10000: the repo's CLOUDFLARE_API_TOKEN is Pages-scoped. This makes the workflow prefer a dedicated CLOUDFLARE_R2_TOKEN secret (Account → R2 → Edit) with fallback to the existing token.

Action needed after merge: mint the token at https://dash.cloudflare.com/profile/api-tokens and gh secret set CLOUDFLARE_R2_TOKEN -R pilot-protocol/website, then gh workflow run sync-install-sh.yml to confirm green.

🤖 Generated with Claude Code

… R2 scope

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

🚀 Preview deployed to Cloudflare Pages

  • Commit deploy URL: https://5a805fa4.pilotprotocol.pages.dev
  • Branch alias: https://ci/r2-token-fallback.pilotprotocol.pages.dev (may take ~30s to propagate)
  • Commit: ed90f9c3a4af9b0332809c339546b6fde50c22b0

@TeoSlayer
TeoSlayer merged commit a8d257c into main Jul 7, 2026
3 checks passed
@TeoSlayer
TeoSlayer deleted the ci/r2-token-fallback branch July 13, 2026 07:57
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.

2 participants