renovate 44.164.0 → 44.164.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -15,9 +15,9 @@ function getRepoUrl(repository, gitUrl, sshUrl, endpoint, authToken) {
|
|
|
15
15
|
}
|
|
16
16
|
const url = parseUrl(endpoint.href);
|
|
17
17
|
if (authToken) {
|
|
18
|
-
const [username, password] = authToken.split(":");
|
|
18
|
+
const [username, password] = authToken.includes(":") ? authToken.split(":") : ["x-access-token", authToken];
|
|
19
19
|
url.username = username;
|
|
20
|
-
url.password = password
|
|
20
|
+
url.password = password;
|
|
21
21
|
}
|
|
22
22
|
url.host = url.host.replace("api.github.com", "github.com");
|
|
23
23
|
url.pathname = `${repository}.git`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","names":[],"sources":["../../../../lib/modules/platform/github/utils.ts"],"sourcesContent":["import { CONFIG_GIT_URL_UNAVAILABLE } from '../../../constants/error-messages.ts';\nimport { logger } from '../../../logger/index.ts';\nimport { parseGitAuthor } from '../../../util/git/author.ts';\nimport { parseUrl } from '../../../util/url.ts';\nimport type { GitUrlOption } from '../types.ts';\nimport type { GithubEnterpriseServerHost, GithubHost } from './types.ts';\n\nexport function warnIfDefaultGitAuthorEmail(\n gitAuthor: string | undefined,\n isGHE: boolean | undefined,\n): void {\n if (isGHE === true) {\n return;\n }\n const parsed = parseGitAuthor(\n gitAuthor ?? 'renovate@whitesourcesoftware.com',\n );\n if (parsed?.address === 'renovate@whitesourcesoftware.com') {\n logger.once.warn(\n {\n documentationUrl:\n 'https://github.com/renovatebot/renovate/discussions/39309',\n },\n 'Using the default gitAuthor email address, renovate@whitesourcesoftware.com, is not recommended on GitHub.com, as this corresponds to a user owned by Mend and used by users of the forking-renovate[bot] GitHub App. For security and authenticity reasons, Mend enables \"Vigilant Mode\" on this account to visibly flag unsigned commits. As an account you do not control, you will not be able to sign commits. If you are comfortable with the `Unverified` signatures on each commit, no work is needed. Otherwise, it is recommended to migrate to a user account you own',\n );\n }\n}\n\nexport function getRepoUrl(\n repository: string,\n gitUrl: GitUrlOption | undefined,\n sshUrl: string | null,\n endpoint: URL,\n authToken: string | null,\n): string {\n if (gitUrl === 'ssh') {\n if (!sshUrl) {\n throw new Error(CONFIG_GIT_URL_UNAVAILABLE);\n }\n logger.debug(`Using ssh URL: ${sshUrl}`);\n return sshUrl;\n }\n\n // clone to avoid mutating the caller's URL; href is known-valid\n const url = parseUrl(endpoint.href)!;\n if (authToken) {\n const [username, password] = authToken.split(':');\n url.username = username;\n url.password = password
|
|
1
|
+
{"version":3,"file":"utils.js","names":[],"sources":["../../../../lib/modules/platform/github/utils.ts"],"sourcesContent":["import { CONFIG_GIT_URL_UNAVAILABLE } from '../../../constants/error-messages.ts';\nimport { logger } from '../../../logger/index.ts';\nimport { parseGitAuthor } from '../../../util/git/author.ts';\nimport { parseUrl } from '../../../util/url.ts';\nimport type { GitUrlOption } from '../types.ts';\nimport type { GithubEnterpriseServerHost, GithubHost } from './types.ts';\n\nexport function warnIfDefaultGitAuthorEmail(\n gitAuthor: string | undefined,\n isGHE: boolean | undefined,\n): void {\n if (isGHE === true) {\n return;\n }\n const parsed = parseGitAuthor(\n gitAuthor ?? 'renovate@whitesourcesoftware.com',\n );\n if (parsed?.address === 'renovate@whitesourcesoftware.com') {\n logger.once.warn(\n {\n documentationUrl:\n 'https://github.com/renovatebot/renovate/discussions/39309',\n },\n 'Using the default gitAuthor email address, renovate@whitesourcesoftware.com, is not recommended on GitHub.com, as this corresponds to a user owned by Mend and used by users of the forking-renovate[bot] GitHub App. For security and authenticity reasons, Mend enables \"Vigilant Mode\" on this account to visibly flag unsigned commits. As an account you do not control, you will not be able to sign commits. If you are comfortable with the `Unverified` signatures on each commit, no work is needed. Otherwise, it is recommended to migrate to a user account you own',\n );\n }\n}\n\nexport function getRepoUrl(\n repository: string,\n gitUrl: GitUrlOption | undefined,\n sshUrl: string | null,\n endpoint: URL,\n authToken: string | null,\n): string {\n if (gitUrl === 'ssh') {\n if (!sshUrl) {\n throw new Error(CONFIG_GIT_URL_UNAVAILABLE);\n }\n logger.debug(`Using ssh URL: ${sshUrl}`);\n return sshUrl;\n }\n\n // clone to avoid mutating the caller's URL; href is known-valid\n const url = parseUrl(endpoint.href)!;\n if (authToken) {\n const [username, password] = authToken.includes(':')\n ? authToken.split(':')\n : ['x-access-token', authToken];\n url.username = username;\n url.password = password;\n }\n url.host = url.host.replace('api.github.com', 'github.com');\n url.pathname = `${repository}.git`;\n return url.href;\n}\n\nexport function isGithubEnterpriseServer(\n host: GithubHost,\n): host is GithubEnterpriseServerHost {\n return host.type === 'ghes';\n}\n"],"mappings":";;;;;AAOA,SAAgB,4BACd,WACA,OACM;CACN,IAAI,UAAU,MACZ;CAKF,IAHe,eACb,aAAa,kCAEN,CAAC,EAAE,YAAY,oCACtB,OAAO,KAAK,KACV,EACE,kBACE,4DACJ,GACA,ojBACF;AAEJ;AAEA,SAAgB,WACd,YACA,QACA,QACA,UACA,WACQ;CACR,IAAI,WAAW,OAAO;EACpB,IAAI,CAAC,QACH,MAAM,IAAI,MAAM,0BAA0B;EAE5C,OAAO,MAAM,kBAAkB,QAAQ;EACvC,OAAO;CACT;CAGA,MAAM,MAAM,SAAS,SAAS,IAAI;CAClC,IAAI,WAAW;EACb,MAAM,CAAC,UAAU,YAAY,UAAU,SAAS,GAAG,IAC/C,UAAU,MAAM,GAAG,IACnB,CAAC,kBAAkB,SAAS;EAChC,IAAI,WAAW;EACf,IAAI,WAAW;CACjB;CACA,IAAI,OAAO,IAAI,KAAK,QAAQ,kBAAkB,YAAY;CAC1D,IAAI,WAAW,GAAG,WAAW;CAC7B,OAAO,IAAI;AACb;AAEA,SAAgB,yBACd,MACoC;CACpC,OAAO,KAAK,SAAS;AACvB"}
|
package/package.json
CHANGED
package/renovate-schema.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$id": "https://docs.renovatebot.com/renovate-schema.json",
|
|
3
|
-
"title": "JSON schema for Renovate 44.164.
|
|
3
|
+
"title": "JSON schema for Renovate 44.164.1 config files (https://renovatebot.com/)",
|
|
4
4
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
5
|
-
"x-renovate-version": "44.164.
|
|
5
|
+
"x-renovate-version": "44.164.1",
|
|
6
6
|
"allowComments": true,
|
|
7
7
|
"type": "object",
|
|
8
8
|
"definitions": {
|