From 2abed2745cd75f8fe1dedc5235f3d7210814eb11 Mon Sep 17 00:00:00 2001 From: Benjamin De Troch <benjamin.detroch+github@gmail.com> Date: Wed, 20 Apr 2022 14:49:08 +0200 Subject: [PATCH] fix(pod): Massage only registry URLs that matched the GitHub regex --- lib/modules/datasource/pod/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/modules/datasource/pod/index.ts b/lib/modules/datasource/pod/index.ts index 946af80dd8..f567e237c7 100644 --- a/lib/modules/datasource/pod/index.ts +++ b/lib/modules/datasource/pod/index.ts @@ -222,7 +222,6 @@ export class PodDatasource extends Datasource { const podName = packageName.replace(regEx(/\/.*$/), ''); let baseUrl = registryUrl.replace(regEx(/\/+$/), ''); - baseUrl = massageGithubUrl(baseUrl); // In order to not abuse github API limits, query CDN instead if (isDefaultRepo(baseUrl)) { [baseUrl] = this.defaultRegistryUrls; @@ -231,6 +230,7 @@ export class PodDatasource extends Datasource { let result: ReleaseResult | null = null; const match = githubRegex.exec(baseUrl); if (match) { + baseUrl = massageGithubUrl(baseUrl); const { hostURL, account, repo } = match?.groups ?? {}; const opts = { hostURL, account, repo }; result = await this.getReleasesFromGithub(podName, opts); -- GitLab