You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* properly handle emails for github app auth case
* add docs info for auth through github app
* more info in docs for user auth perms
* modify review agent env var names
* github app service auth
* coderabbit suggestions
* fixes
* fix build
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-3Lines changed: 2 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
11
11
12
12
### Added
13
13
- Implement dynamic tab titles for files and folders in browse tab. [#560](https://github.com/sourcebot-dev/sourcebot/pull/560)
14
+
- Added support for passing db connection url as seperate `DATABASE_HOST`, `DATABASE_USERNAME`, `DATABASE_PASSWORD`, `DATABASE_NAME`, and `DATABASE_ARGS` env vars. [#545](https://github.com/sourcebot-dev/sourcebot/pull/545)
15
+
- Added support for GitHub Apps for service auth. [#570](https://github.com/sourcebot-dev/sourcebot/pull/570)
- Added support for passing db connection url as seperate `DATABASE_HOST`, `DATABASE_USERNAME`, `DATABASE_PASSWORD`, `DATABASE_NAME`, and `DATABASE_ARGS` env vars. [#545](https://github.com/sourcebot-dev/sourcebot/pull/545)
Authentication using both a **GitHub OAuth App** and a **GitHub App** is supported. In both cases, you must provide Sourcebot the `CLIENT_ID` and `SECRET_ID` and configure the
37
+
callback URL correctly (more info in Auth.js docs).
38
+
39
+
When using a **GitHub App** for auth, enable the following permissions:
40
+
-`“Email addresses” account permissions (read)`
41
+
-`"Metadata" repository permissions (read)` (only needed if enabling [permission syncing](/docs/features/permission-syncing))
Copy file name to clipboardExpand all lines: docs/docs/configuration/environment-variables.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -62,9 +62,9 @@ The following environment variables allow you to configure your Sourcebot deploy
62
62
### Review Agent Environment Variables
63
63
| Variable | Default | Description |
64
64
| :------- | :------ | :---------- |
65
-
|`GITHUB_APP_ID`|`-`| <p>The GitHub App ID used for review agent authentication.</p> |
66
-
|`GITHUB_APP_PRIVATE_KEY_PATH`|`-`| <p>The container relative path to the private key file for the GitHub App used by the review agent.</p> |
67
-
|`GITHUB_APP_WEBHOOK_SECRET`|`-`| <p>The webhook secret for the GitHub App used by the review agent.</p> |
65
+
|`GITHUB_REVIEW_AGENT_APP_ID`|`-`| <p>The GitHub App ID used for review agent authentication.</p> |
66
+
|`GITHUB_REVIEW_AGENT_APP_PRIVATE_KEY_PATH`|`-`| <p>The container relative path to the private key file for the GitHub App used by the review agent.</p> |
67
+
|`GITHUB_REVIEW_AGENT_APP_WEBHOOK_SECRET`|`-`| <p>The webhook secret for the GitHub App used by the review agent.</p> |
68
68
|`OPENAI_API_KEY`|`-`| <p>The OpenAI API key used by the review agent.</p> |
69
69
|`REVIEW_AGENT_API_KEY`|`-`| <p>The Sourcebot API key used by the review agent.</p> |
70
70
|`REVIEW_AGENT_AUTO_REVIEW_ENABLED`|`false`| <p>Enables/disables automatic code reviews by the review agent.</p> |
Copy file name to clipboardExpand all lines: docs/docs/features/agents/review-agent.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,9 +44,9 @@ Before you get started, make sure you have an OpenAPI account that you can creat
44
44
<Steptitle="Configure the environment variables in Sourcebot">
45
45
Sourcebot requires the following environment variables to begin reviewing PRs through your new GitHub app:
46
46
47
-
-`GITHUB_APP_ID`: The client ID of your GitHub app. Can be found in your [app settings](https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/quickstart#navigate-to-your-app-settings)
48
-
- `GITHUB_APP_WEBHOOK_SECRET`: The webhook secret you defined in your GitHub app. Can be found in your [app settings](https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/quickstart#navigate-to-your-app-settings)
49
-
- `GITHUB_APP_PRIVATE_KEY_PATH`: The path to your app's private key. If you're running Sourcebot from a container, this is the path to this file from within your container
47
+
-`GITHUB_REVIEW_AGENT_APP_ID`: The client ID of your GitHub app. Can be found in your [app settings](https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/quickstart#navigate-to-your-app-settings)
48
+
- `GITHUB_REVIEW_AGENT_APP_WEBHOOK_SECRET`: The webhook secret you defined in your GitHub app. Can be found in your [app settings](https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/quickstart#navigate-to-your-app-settings)
49
+
- `GITHUB_REVIEW_AGENT_APP_PRIVATE_KEY_PATH`: The path to your app's private key. If you're running Sourcebot from a container, this is the path to this file from within your container
50
50
(ex `/data/review-agent-key.pem`). You must copy the private key file into the directory you mount to Sourcebot (similar to the config file).
51
51
52
52
You can generate a private key file for your app in the [app settings](https://docs.github.com/en/apps/creating-github-apps/writing-code-for-a-github-app/quickstart#navigate-to-your-app-settings). You must copy this private key file into the
@@ -74,9 +74,9 @@ Before you get started, make sure you have an OpenAPI account that you can creat
0 commit comments