From 7b41dcceeadb2e9d91da712c08f0ace321b72bff Mon Sep 17 00:00:00 2001 From: Ajin Abraham Date: Sun, 10 Nov 2024 21:05:39 -0800 Subject: [PATCH] Fix sarif --- njsscan/__init__.py | 2 +- njsscan/formatters/sarif.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/njsscan/__init__.py b/njsscan/__init__.py index 067cc43..3a5c84f 100644 --- a/njsscan/__init__.py +++ b/njsscan/__init__.py @@ -6,7 +6,7 @@ __title__ = 'njsscan' __authors__ = 'Ajin Abraham' __copyright__ = f'Copyright {datetime.now().year} Ajin Abraham, OpenSecurity' -__version__ = '0.4.1' +__version__ = '0.4.2' __version_info__ = tuple(int(i) for i in __version__.split('.')) __all__ = [ '__title__', diff --git a/njsscan/formatters/sarif.py b/njsscan/formatters/sarif.py index 369a953..53e74f7 100644 --- a/njsscan/formatters/sarif.py +++ b/njsscan/formatters/sarif.py @@ -55,7 +55,7 @@ def add_results(scan_results, run): issue_dict, rules, rule_indices) - run.results.append(result) + run.results.extend(result) if rules: run.tool.driver.rules = list(rules.values())