feat: add GitHub App configuration (env vars, coder template, triggers)#91
Merged
Conversation
Add the three GitHub App environment variables (GITHUB_APP_ID, GITHUB_APP_PRIVATE_KEY, GITHUB_APP_WEBHOOK_SECRET) to: - .env.example with documentation on required App permissions and events - coder-template/main.tf as workspace parameters wired to both the agent env block and container env block Add github_app triggers to opentower.config.json: - github-app-event: issues, pull_request, check_suite:completed, workflow_run:completed, push (mirrors github-event) - github-app-comment: PR review comments, issue comments, PR reviews with $BOT_LOGIN self-loop guard (mirrors github-comment) Both trigger sets use source: "github_app" so they route through the GithubAppHandler which uses installation tokens for entity enrichment API calls.
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
opencode-email-worker | 398eeb1 | Commit Preview URL Branch Preview URL |
May 19 2026, 09:48 AM |
- Memory: requests 1Gi -> 2Gi, limits 4Gi -> 8Gi - PVC storage: 10Gi -> 50Gi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.env.exampleandcoder-template/main.tfgithub_appsource triggers toopentower.config.jsonChanges
.env.exampleNew section documenting the three GitHub App env vars with required permissions and events:
GITHUB_APP_ID— App ID from settings pageGITHUB_APP_PRIVATE_KEY— PEM key (literal\nauto-converted)GITHUB_APP_WEBHOOK_SECRET— HMAC secret for webhook verificationcoder-template/main.tfThree new
coder_parameterresources (github_app_id,github_app_private_key,github_app_webhook_secret) wired into both the agentenvblock and the containerenvblock.opentower.config.jsonTwo new triggers mirroring the existing
github_webhooktriggers:github-app-event— issues, pull_request, check_suite:completed, workflow_run:completed, pushgithub-app-comment— PR review comments, issue comments, PR reviews (with$BOT_LOGINself-loop guard)Both use
"source": "github_app"so they route through theGithubAppHandlerwhich provides installation tokens for entity enrichment.