Skip to content

Commit

Permalink
Merge pull request #46 from ferozsalam/fix-vulnerability-filtering
Browse files Browse the repository at this point in the history
Fix vulnerability duplicate filtering
  • Loading branch information
sgordon46 authored Jan 24, 2024
2 parents cd5348a + 692380d commit c80fce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14490,7 +14490,7 @@ function formatSarifToolDriverRules(results) {
const vulnerabilities = result.vulnerabilities;
const compliances = result.compliances;

const vulnerabilitiesFiltered = vulnerabilities.filter(
const vulnerabilitiesFiltered = (vulnerabilities || []).filter(
(thing, index, self) =>
index ===
self.findIndex((t) => t.id === thing.id )
Expand Down Expand Up @@ -14731,4 +14731,4 @@ if (require.main === require.cache[eval('__filename')]) {

module.exports = __webpack_exports__;
/******/ })()
;
;

0 comments on commit c80fce7

Please sign in to comment.