From 3545635bb0f5f5bf87ff8c1de0055e0d3515cffd Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 10 Jun 2026 17:51:53 -0700 Subject: [PATCH 1/3] fix(worker): pass logger to getAuthCredentialsForRepo during repo sync Without a logger, the debug lines in getAuthCredentialsForRepo (e.g. "Using GitHub App for service auth...") were no-ops during indexing, hiding which auth branch was taken when diagnosing sync failures. Co-Authored-By: Claude Opus 4.8 (1M context) --- packages/backend/src/repoIndexManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/repoIndexManager.ts b/packages/backend/src/repoIndexManager.ts index fdd51af9b..aea1291dc 100644 --- a/packages/backend/src/repoIndexManager.ts +++ b/packages/backend/src/repoIndexManager.ts @@ -351,7 +351,7 @@ export class RepoIndexManager { const metadata = repoMetadataSchema.parse(repo.metadata); - const credentials = await getAuthCredentialsForRepo(repo); + const credentials = await getAuthCredentialsForRepo(repo, logger); const cloneUrlMaybeWithToken = credentials?.cloneUrlWithToken ?? repo.cloneUrl; const authHeader = credentials?.authHeader ?? undefined; From 9b7712667c9187e233e5e9aaec67446a15a6e12f Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 10 Jun 2026 17:52:16 -0700 Subject: [PATCH 2/3] docs: add CHANGELOG entry for #1300 Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 764c9a36e..b8f3bb10f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed issue where using multiple identity providers of the same type (e.g., gitlab) would result in unexpected behaviours. [#1177](https://github.com/sourcebot-dev/sourcebot/pull/1177) - Fixed a race condition where large repositories could be indexed twice within a single reindex interval. [#1298](https://github.com/sourcebot-dev/sourcebot/pull/1298) - Upgraded `shell-quote` to `^1.8.4`. [#1299](https://github.com/sourcebot-dev/sourcebot/pull/1299) +- Passed the logger into `getAuthCredentialsForRepo` during repo sync so its debug logs surface which auth path was taken. [#1300](https://github.com/sourcebot-dev/sourcebot/pull/1300) ## [5.0.1] - 2026-06-04 From baf96c3f0be164bc2d910caa27eff530f6cee322 Mon Sep 17 00:00:00 2001 From: Brendan Kellam Date: Wed, 10 Jun 2026 17:54:10 -0700 Subject: [PATCH 3/3] docs: remove CHANGELOG entry for #1300 Co-Authored-By: Claude Opus 4.8 (1M context) --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b8f3bb10f..764c9a36e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,7 +27,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed issue where using multiple identity providers of the same type (e.g., gitlab) would result in unexpected behaviours. [#1177](https://github.com/sourcebot-dev/sourcebot/pull/1177) - Fixed a race condition where large repositories could be indexed twice within a single reindex interval. [#1298](https://github.com/sourcebot-dev/sourcebot/pull/1298) - Upgraded `shell-quote` to `^1.8.4`. [#1299](https://github.com/sourcebot-dev/sourcebot/pull/1299) -- Passed the logger into `getAuthCredentialsForRepo` during repo sync so its debug logs surface which auth path was taken. [#1300](https://github.com/sourcebot-dev/sourcebot/pull/1300) ## [5.0.1] - 2026-06-04