From 7959048fbefcc7f6fd7c3962143328813b4bf1ea Mon Sep 17 00:00:00 2001 From: iCrawl Date: Mon, 19 Apr 2021 21:25:31 +0200 Subject: [PATCH] fix: remove access token/auth from git url --- src/activity.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activity.ts b/src/activity.ts index dbf8336..56e9ca9 100644 --- a/src/activity.ts +++ b/src/activity.ts @@ -81,7 +81,7 @@ export async function activity(previous: ActivityPayload = {}) { if (repo.startsWith('git@')) { repo = repo.replace(':', '/').replace('git@', 'https://').replace('.git', ''); } else { - repo = repo.replace('.git', ''); + repo = repo.replace(/(https:\/\/)([^@]*)@(.*?$)/, '$1$3').replace('.git', ''); } state = {