RealComposer

GitHub Safe & Unsafe Practices

Direct Answer

GitHub personal access tokens, OAuth tokens, and GitHub App private keys are server-only. Prefer fine-grained tokens or GitHub Apps scoped to specific repositories, and cache responses because unauthenticated requests are limited to 60 per hour.

Credentials & Where They Belong

Server only
Fine-grained personal access token

Scoped to selected repositories and permissions.

Server only
Classic personal access token

Broad scopes such as repo grant access to every repository.

Server only
GitHub App private key

Mints installation tokens for the app.

Safe Practices

  • Use fine-grained tokens or GitHub Apps

    Limit access to the repositories and permissions each integration needs.

  • Cache with ETags

    Conditional requests that return 304 do not count against your rate limit.

  • Verify webhook signatures

    Check X-Hub-Signature-256 with your webhook secret before handling events.

Unsafe Practices

  • Shipping a classic repo-scoped token to a client

    It can read and push to every private repository the user owns.

  • Committing tokens to source control

    Secret scanning will revoke many leaked tokens, but attackers often find them first.

The RealComposer Pattern

Store GITHUB_TOKEN in the vault, cache repository and release reads at the edge, and slim large payloads into compact stats objects.

START BUILDING FREE

Frequently Asked Questions

Q:Why do I hit GitHub rate limits from the browser?

Unauthenticated requests share a 60 per hour limit per IP. Authenticated, cached server calls get far higher limits.

Multi-API Aggregation

Combine linear with github project board api

Upgraded multi-step Linear GraphQL plus GitHub repos (replaces single-step batch1). For "combine linear with github project board api", store LINEAR_API_KEY, GITHUB_TOKEN in Secret Vault, call https://api.linear.app/graphql from a Worker, and let Frontend / Web hit only https://realcomposer.com/v1/workspace/combine-linear-with-github-board with an rc_live_ client token. POST upstream calls are not stored in caches.default; clients must send JSON bodies and headers forward unchanged.

Sub-10ms edgeView Recipe

Related Concepts