Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(selfhost): pass GitHub App credentials into the backend container (#7259)

Eric Berry74a27954ea47
diff --git a/.env.example b/.env.example
index 0a22624f90..8120c0bdb3 100644
--- a/.env.example
+++ b/.env.example
@@ -468,6 +468,11 @@ GITHUB_WEBHOOK_SECRET=
# GITHUB_APP_ID is the numeric "App ID" shown on the App's settings page.
# GITHUB_APP_PRIVATE_KEY is the full PEM block (including BEGIN/END lines)
# generated under "Private keys" on that same page; preserve newlines.
+# In this file that means wrapping the value in double quotes and keeping
+# the real line breaks - an unquoted multi-line value stops at line one:
+# GITHUB_APP_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----
+# ...
+# -----END RSA PRIVATE KEY-----"
GITHUB_APP_ID=
GITHUB_APP_PRIVATE_KEY=
diff --git a/docker-compose.selfhost.yml b/docker-compose.selfhost.yml
index 2f216c905c..4a81107070 100644
--- a/docker-compose.selfhost.yml
+++ b/docker-compose.selfhost.yml
@@ -113,6 +113,16 @@ services:
MULTICA_ENTITLEMENT_EMERGENCY_DISABLED: ${MULTICA_ENTITLEMENT_EMERGENCY_DISABLED:-false}
GITHUB_APP_SLUG: ${GITHUB_APP_SLUG:-}
GITHUB_WEBHOOK_SECRET: ${GITHUB_WEBHOOK_SECRET:-}
+ # App API credentials. The pull_request webhook is what mirrors a PR
+ # onto a card; these are what let the server authenticate as the App
+ # and pull the CI / mergeability snapshot that enriches it, plus
+ # Settings -> Repositories -> Choose from GitHub. Left unset,
+ # ghsnapshot.NewClientFromEnv returns a nil client and the enrichment
+ # degrades off silently - no error and no log line to notice.
+ # GITHUB_APP_PRIVATE_KEY is a PEM block: double-quote it in .env so
+ # its newlines survive into the container.
+ GITHUB_APP_ID: ${GITHUB_APP_ID:-}
+ GITHUB_APP_PRIVATE_KEY: ${GITHUB_APP_PRIVATE_KEY:-}
# Public URL the API is reachable at from the open internet, no
# trailing slash. Used to mint absolute webhook URLs for autopilot
# webhook triggers. Leave unset behind a same-origin reverse proxy