From 7309faeb3c60d5825be8eae674abae50bb607d77 Mon Sep 17 00:00:00 2001 From: Christiaan de Wet <125261483+Christiaan-de-Wet@users.noreply.github.com> Date: Tue, 23 Sep 2025 17:04:27 +0100 Subject: [PATCH] fix(COD-5797): fix account url --- src/util.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/util.ts b/src/util.ts index fd913c51..b05e5ddc 100644 --- a/src/util.ts +++ b/src/util.ts @@ -95,8 +95,11 @@ export function generateUILink() { if (targetBranch !== defaultBranch) return '' + let lwAccountName = process.env.LW_ACCOUNT_NAME + lwAccountName = lwAccountName?.replace(/\.lacework\.net$/, '') + let url = - `https://${process.env.LW_ACCOUNT_NAME}.lacework.net` + + `https://${lwAccountName}.lacework.net` + `/ui/investigation/codesec/applications/repositories/` + `${context.repo.owner}%2F${context.repo.repo}` + `/${defaultBranch}`