Skip to content

Commit 1bac8d8

Browse files
authored
fix: skip processing for invalid input PURLs in scanner (#8)
1 parent 9829882 commit 1bac8d8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,8 @@ export const scanner: Bun.Security.Scanner = {
8282

8383
const match = artifact.inputPurl.match(purlRegex);
8484

85+
if (!match) continue;
86+
8587
const name = match[1];
8688
const version = match[2];
8789

0 commit comments

Comments
 (0)