revert: fix: prefix git auth url with "x-access-token:" when run in a GitHub Action

This reverts commit cb2c506d8b.
This commit is contained in:
Pierre Vanduynslager
2019-09-13 14:45:35 -04:00
parent 3f0a37944d
commit f67a667bcb
2 changed files with 10 additions and 25 deletions
-13
View File
@@ -273,19 +273,6 @@ test('Return the "https" formatted URL if "gitCredentials" is defined with "BITB
);
});
test('Return the "https" formatted URL if "GITHUB_ACTION" is set', async t => {
const {cwd} = await gitRepo();
t.is(
await getAuthUrl({
cwd,
env: {...env, GITHUB_ACTION: 'foo', GITHUB_TOKEN: 'token'},
options: {branch: 'master', repositoryUrl: 'git@host.null:owner/repo.git'},
}),
'https://x-access-token:token@host.null/owner/repo.git'
);
});
test('Handle "https" URL with group and subgroup, with "GIT_CREDENTIALS"', async t => {
const {cwd} = await gitRepo();