Skip to content

fix(web): give the Worker the GitHub token for the releases feed - #1129

Merged
riderx merged 1 commit into
mainfrom
fix/worker-github-token
Oct 12, 2026
Merged

riderx merged 1 commit into
mainfrom
fix/worker-github-token

Conversation

@riderx

@riderx riderx commented Oct 12, 2026 •

Copy link
Copy Markdown
Member

Follow-up to #1128.

  • deploy-web.yml: on regular deploys, wrangler secret put PERSONAL_ACCESS_TOKEN from the repo secret (same step that removes legacy secrets). Secrets persist into A/B uploaded versions, so the split path needs nothing.
  • Releases feed back to the GitHub REST API with the token (filters drafts and prereleases). Atom parser removed.
  • Repos are still Cap-go/capgo.app + Cap-go/capacitor-updater.
  • /sponsors already read env.PERSONAL_ACCESS_TOKEN but the Worker never had it, so that endpoint starts working too.

Test: bun test apps/web/test/github-releases.test.js pass, astro check 0 errors.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

View guided diff Turn on auto-fix

Sync PERSONAL_ACCESS_TOKEN to the web Worker on deploy so
/github-releases.json (and sponsors) call the GitHub API authenticated
instead of hitting the shared unauthenticated limit on Cloudflare IPs.
Switch the releases feed back from Atom to the REST API, which also
filters drafts and prereleases.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 12, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: 17e28308-c44e-47a7-bbad-cbacf48d5d0d

📥 Commits

Reviewing files that changed from the base of the PR and between 7762bd8 and 4a530cb.


📒 Files selected for processing (5)
  • .github/workflows/deploy-web.yml
  • apps/web/src/lib/publicGithubReleases.ts
  • apps/web/src/worker/github-releases.ts
  • apps/web/src/worker/index.ts
  • apps/web/test/github-releases.test.js

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@sonarqubecloud

Copy link
Copy Markdown

@riderx
riderx merged commit d84c812 into main Oct 12, 2026
13 checks passed
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.

1 participant