Skip to content

Commit 68f8e7b

Browse files
fix(COD-5797): fix account url (#232)
1 parent 3004ac9 commit 68f8e7b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,11 @@ export function generateUILink() {
9595

9696
if (targetBranch !== defaultBranch) return ''
9797

98+
let lwAccountName = process.env.LW_ACCOUNT_NAME
99+
lwAccountName = lwAccountName?.replace(/\.lacework\.net$/, '')
100+
98101
let url =
99-
`https://${process.env.LW_ACCOUNT_NAME}.lacework.net` +
102+
`https://${lwAccountName}.lacework.net` +
100103
`/ui/investigation/codesec/applications/repositories/` +
101104
`${context.repo.owner}%2F${context.repo.repo}` +
102105
`/${defaultBranch}`

0 commit comments

Comments
 (0)