From 1a8088c4d6ef9bafeb26b8c6b19818551758839f Mon Sep 17 00:00:00 2001 From: Michael Kriese <michael.kriese@visualon.de> Date: Thu, 16 Mar 2023 10:52:02 +0100 Subject: [PATCH] fix: Revert "fix: Add support for PAT in Bitbucket Server. Closes #14900" (#20979) --- lib/modules/platform/bitbucket-server/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/modules/platform/bitbucket-server/index.ts b/lib/modules/platform/bitbucket-server/index.ts index b3e574dc7f..acdc8bd71f 100644 --- a/lib/modules/platform/bitbucket-server/index.ts +++ b/lib/modules/platform/bitbucket-server/index.ts @@ -81,14 +81,13 @@ export function initPlatform({ endpoint, username, password, - token, }: PlatformParams): Promise<PlatformResult> { if (!endpoint) { throw new Error('Init: You must configure a Bitbucket Server endpoint'); } - if (!(username && password) && !token) { + if (!(username && password)) { throw new Error( - 'Init: You must configure either a Bitbucket Server token or username and password' + 'Init: You must configure a Bitbucket Server username/password' ); } // TODO: Add a connection check that endpoint/username/password combination are valid (#9595) -- GitLab