diff --git a/.github/local-actions/changelog/main.js b/.github/local-actions/changelog/main.js index 22d96e899..8aad81857 100644 --- a/.github/local-actions/changelog/main.js +++ b/.github/local-actions/changelog/main.js @@ -66941,7 +66941,7 @@ var GITHUB_TOKEN_GENERATE_URL = "https://github.com/settings/tokens/new"; function addTokenToGitHttpsUrl(githubHttpsUrl, token) { const url = new URL2(githubHttpsUrl); url.password = token; - url.username = "_"; + url.username = "x-access-token"; return url.href; } function getRepositoryGitUrl(config2, githubToken) { diff --git a/github-actions/slash-commands/main.js b/github-actions/slash-commands/main.js index f7d06f10e..e326c4a7e 100644 --- a/github-actions/slash-commands/main.js +++ b/github-actions/slash-commands/main.js @@ -69256,7 +69256,7 @@ var GITHUB_TOKEN_GENERATE_URL = "https://github.com/settings/tokens/new"; function addTokenToGitHttpsUrl(githubHttpsUrl, token) { const url = new URL2(githubHttpsUrl); url.password = token; - url.username = "_"; + url.username = "x-access-token"; return url.href; } function getRepositoryGitUrl(config, githubToken) { diff --git a/ng-dev/utils/git/github-urls.ts b/ng-dev/utils/git/github-urls.ts index bda20a313..3e289403a 100644 --- a/ng-dev/utils/git/github-urls.ts +++ b/ng-dev/utils/git/github-urls.ts @@ -21,7 +21,7 @@ export const GITHUB_TOKEN_GENERATE_URL = 'https://github.com/settings/tokens/new export function addTokenToGitHttpsUrl(githubHttpsUrl: string, token: string) { const url = new URL(githubHttpsUrl); url.password = token; - url.username = '_'; + url.username = 'x-access-token'; return url.href; } diff --git a/ng-dev/utils/testing/virtual-git-matchers.ts b/ng-dev/utils/testing/virtual-git-matchers.ts index 178556f8a..7fb6eb591 100644 --- a/ng-dev/utils/testing/virtual-git-matchers.ts +++ b/ng-dev/utils/testing/virtual-git-matchers.ts @@ -27,13 +27,13 @@ export function getBranchPushMatcher(options: BranchPushMatchParameters) { const {targetRepo, targetBranch, baseBranch, baseRepo, expectedCommits} = options; return jasmine.objectContaining({ remote: { - repoUrl: `https://_:abc123@github.com/${targetRepo.owner}/${targetRepo.name}.git`, + repoUrl: `https://x-access-token:abc123@github.com/${targetRepo.owner}/${targetRepo.name}.git`, name: `refs/heads/${targetBranch}`, }, head: jasmine.objectContaining({ newCommits: expectedCommits, ref: { - repoUrl: `https://_:abc123@github.com/${baseRepo.owner}/${baseRepo.name}.git`, + repoUrl: `https://x-access-token:abc123@github.com/${baseRepo.owner}/${baseRepo.name}.git`, name: baseBranch, }, }),