Skip to content

Add internal GitHub token broker for SEO Monitor - #150

Merged
EagleFox31 merged 6 commits into
mainfrom
feat/seo-github-broker
Oct 14, 2026
Merged

EagleFox31 merged 6 commits into
mainfrom
feat/seo-github-broker

Conversation

@EagleFox31

@EagleFox31 EagleFox31 commented Oct 14, 2026 •

Copy link
Copy Markdown
Contributor

Adds an internal named Worker RPC entrypoint so SEO Monitor can reuse AppFactory's GitHub identity without copying its private key. The target repository and permission sets are fixed, with bounded fallback after definite scope rejection. Capability diagnostics return installation metadata without secrets.

The database lease allowlist also accepts repository dispatch for the original SEO collector workflow on main. Tests cover scoped token requests, bounded fallback and workflow-pinned lease authorization; Workers RPC types are included. Default HTTP routes remain unchanged.

Validated in production: the broker uses existing Contents write permission, the MCP → API → broker path dispatched SEO workflow run 38568211173 successfully, and Neon saved the matching snapshot with no failures. No additional GitHub permission grant was needed. Typecheck, service, web and Android checks pass; desktop blueprint validation runs independently.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
appfactory-api 68fde00 Commit Preview URL

Branch Preview URL
Oct 14 2026, 12:51 PM

@EagleFox31
EagleFox31 merged commit 210a6d6 into main Oct 14, 2026
7 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