diff --git a/lib/platform/bitbucket/index.js b/lib/platform/bitbucket/index.js index 55932383eb364aaa3a42672626bf2e0579960907..f9b5ff7eea7bd03bced0a3fee6e4c865cb1dfc0f 100644 --- a/lib/platform/bitbucket/index.js +++ b/lib/platform/bitbucket/index.js @@ -76,9 +76,9 @@ async function getRepos(token, endpoint) { } // Initialize bitbucket by getting base branch and SHA -async function initRepo({ repository, token, endpoint }) { +async function initRepo({ repository, endpoint }) { logger.debug(`initRepo("${repository}")`); - const opts = hostRules.find({ platform: 'bitbucket' }, { token, endpoint }); + const opts = hostRules.find({ platform: 'bitbucket' }, { endpoint }); // istanbul ignore next if (!opts.token) { throw new Error(`No token found for Bitbucket repository ${repository}`);