Skip to content

Commit

Permalink
Merge pull request #66 from snyk/chore/stability-test-sarif-converter
Browse files Browse the repository at this point in the history
Chore/stability test sarif converter
  • Loading branch information
j-sp4 authored Mar 22, 2021
2 parents ed7963b + 5b50b31 commit d87b067
Show file tree
Hide file tree
Showing 23 changed files with 5,188 additions and 30 deletions.
4 changes: 3 additions & 1 deletion src/sarif_converter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function getSuggestions(analysisResults: IAnalysisResult): ISarifSuggestions {
if (!Object.keys(suggestions).includes(issueId)) {
suggestions[issueId] = [];
}
suggestions[issueId].push({ ...issues[0], file: file.substring(1) });
issues.forEach(issue => {
suggestions[issueId].push({ ...issue, file: file.substring(1) });
});
}
}
return suggestions;
Expand Down
Loading

0 comments on commit d87b067

Please sign in to comment.