mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-11 20:05:25 +00:00
set placeholder username for azuredevops clone url
This commit is contained in:
parent
7020761ca6
commit
7d01ccefa6
1 changed files with 4 additions and 0 deletions
|
|
@ -218,6 +218,10 @@ export class RepoManager implements IRepoManager {
|
|||
if (config.token) {
|
||||
const token = await getTokenFromConfig(config.token, connection.orgId, db, logger);
|
||||
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,
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue