From 67c6cb7d1457efe9d49caafd9b303af52a9b64a5 Mon Sep 17 00:00:00 2001 From: Raj Joshi Date: Mon, 15 Sep 2025 14:36:31 -0400 Subject: [PATCH 1/2] :wrench: chore: update github app setup instructions for sentry.conf.py --- develop-docs/integrations/github.mdx | 30 ++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/develop-docs/integrations/github.mdx b/develop-docs/integrations/github.mdx index e2138d4dc54b4..5ef894f3a7b60 100644 --- a/develop-docs/integrations/github.mdx +++ b/develop-docs/integrations/github.mdx @@ -95,3 +95,33 @@ github-app.private-key: | privatekeyprivatekeyprivatekeyprivatekey -----END RSA PRIVATE KEY----- ``` + +You can also use a `sentry.conf.py` file to store your configuration as follows: + +```python +# App ID +SENTRY_OPTIONS["github-app.id"] = GITHUB_APP_ID +# App Name +SENTRY_OPTIONS["github-app.name"] = GITHUB_APP_NAME +# Client ID +SENTRY_OPTIONS["github-app.client-id"] = GITHUB_CLIENT_ID +# Client Secret +SENTRY_OPTIONS["github-app.client-secret"] = GITHUB_CLIENT_SECRET +# Webhook Secret +SENTRY_OPTIONS["github-app.webhook-secret"] = GITHUB_WEBHOOK_SECRET + +SENTRY_OPTIONS[ + "github-app.private-key" +] = """ +-----BEGIN RSA PRIVATE KEY----- +privatekeyprivatekeyprivatekeyprivatekey +privatekeyprivatekeyprivatekeyprivatekey +privatekeyprivatekeyprivatekeyprivatekey +privatekeyprivatekeyprivatekeyprivatekey +privatekeyprivatekeyprivatekeyprivatekey +-----END RSA PRIVATE KEY----- +""" + +``` + +Take note that your private key should be a multiline string without any whitespace before the start of a new line of the key. \ No newline at end of file From 88884c6033464780c045e50f528cc70d9ecdbfb1 Mon Sep 17 00:00:00 2001 From: Raj Joshi Date: Fri, 26 Sep 2025 13:17:23 -0700 Subject: [PATCH 2/2] Update github.mdx Added example configuration for GitHub integration using sentry.conf.py. --- develop-docs/integrations/github.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/develop-docs/integrations/github.mdx b/develop-docs/integrations/github.mdx index 5ef894f3a7b60..3859345bfe133 100644 --- a/develop-docs/integrations/github.mdx +++ b/develop-docs/integrations/github.mdx @@ -99,6 +99,8 @@ github-app.private-key: | You can also use a `sentry.conf.py` file to store your configuration as follows: ```python +from sentry.conf.server import SENTRY_OPTIONS + # App ID SENTRY_OPTIONS["github-app.id"] = GITHUB_APP_ID # App Name @@ -124,4 +126,4 @@ privatekeyprivatekeyprivatekeyprivatekey ``` -Take note that your private key should be a multiline string without any whitespace before the start of a new line of the key. \ No newline at end of file +Take note that your private key should be a multiline string without any whitespace before the start of a new line of the key.