fix(azure): Set username in azuredevops clone url (#524)

* set placeholder username for azuredevops clone url

* changelog
This commit is contained in:
Michael Sukkarieh 2025-09-19 09:48:58 -07:00 committed by GitHub
parent 7020761ca6
commit af39b20668
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Fixed sourcebot not pulling github forked repos [#499](https://github.com/sourcebot-dev/sourcebot/pull/499) - Fixed sourcebot not pulling github forked repos [#499](https://github.com/sourcebot-dev/sourcebot/pull/499)
- Fixed azure devop cloud pat issue [#524](https://github.com/sourcebot-dev/sourcebot/pull/524)
## [4.7.0] - 2025-09-17 ## [4.7.0] - 2025-09-17

View file

@ -218,6 +218,10 @@ export class RepoManager implements IRepoManager {
if (config.token) { if (config.token) {
const token = await getTokenFromConfig(config.token, connection.orgId, db, logger); const token = await getTokenFromConfig(config.token, connection.orgId, db, logger);
return { return {
// @note: If we don't provide a username, the password will be set as the username. This seems to work
// for ADO cloud but not for ADO server. To fix this, we set a placeholder username to ensure the password
// is set correctly
username: 'user',
password: token, password: token,
} }
} }