Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion apps/api/src/resources/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ export const apiConfiguredEnv = (stage: MapleStage, region: MapleRegion, domains
// The repository-reading half is shared with maple-ai; the install flow and
// the webhook receiver are this Worker's alone.
githubAppSourceEnv,
optionalPlain("GITHUB_APP_SLUG"),
optionalPlain("GITHUB_APP_CLIENT_ID"),
optionalSecret("GITHUB_APP_CLIENT_SECRET"),
optionalSecret("GITHUB_APP_WEBHOOK_SECRET"),
Expand Down
9 changes: 5 additions & 4 deletions packages/infra/src/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,14 @@ export const planetScaleOAuthEnv: Config.Config<WorkerEnv> = merge(

/**
* The GitHub App as a repository reader: app id + private key mint installation
* tokens, `GITHUB_API_BASE_URL` points them at GitHub Enterprise Server. Bound by
* every Worker that resolves a connected repository — api for the integration,
* maple-ai for the agents' source and sandbox tools. The install flow's client
* id/secret and the webhook secret stay api-only.
* tokens, `GITHUB_API_BASE_URL` points them at GitHub Enterprise Server, the slug is the
* reviewer's `@` handle in published reviews. Bound by every Worker that resolves a connected
* repository: api for the integration, maple-ai for the agents' source and sandbox tools and
* PR reviews. The install flow's client id/secret and the webhook secret stay api-only.
*/
export const githubAppSourceEnv: Config.Config<WorkerEnv> = merge(
optionalPlain("GITHUB_APP_ID"),
optionalPlain("GITHUB_APP_SLUG"),
optionalSecret("GITHUB_APP_PRIVATE_KEY"),
optionalPlain("GITHUB_API_BASE_URL"),
)
Expand Down
Loading