Skip to content

Commit

Permalink
Fix sarif
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Nov 11, 2024
1 parent 2302c53 commit 7b41dcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion njsscan/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__',
Expand Down
2 changes: 1 addition & 1 deletion njsscan/formatters/sarif.py
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 7b41dcc

Please sign in to comment.