Skip to content

Commit 7ab5942

Browse files
authored
Filter cwe - keep original types
1 parent 6c0d3c5 commit 7ab5942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,7 +418,7 @@ const processReport = function () {
418418
name: v.name.truncateLeft(30),
419419
severity: v.severity || '',
420420
category: v.category || '',
421-
identifier: (v.identifiers || []).map(i => i.type == 'cwe' ? i.name : undefined).filter(o => o),
421+
identifier: (v.identifiers || []).map(i => i.type == 'cwe' ? undefined : i.value).filter(o => o),
422422
location: v.location.file.truncateLeft(30)
423423
}
424424
}))

0 commit comments

Comments
 (0)