Skip to content

Commit

Permalink
Add files list in scorecard desc
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Maryushkin committed Dec 8, 2024
1 parent 57eb834 commit f193ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobsf/StaticAnalyzer/views/common/appsec.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ def common_fields(findings, data):
files_dict = cd.get('files', {})
files_lines = [f"{file}, line(s) {lines}"
for file, lines in files_dict.items()]
formated_files_str = '\n'.join(files_lines)
all_files_str = '\n'.join(files_lines)

if files_dict:
fdesc = f'{desc}\n{ref}\n\nFiles:\n{formated_files_str}'
fdesc = f'{desc}\n{ref}\n\nFiles:\n{all_files_str}'
else:
fdesc = f'{desc}\n{ref}'

Expand Down

0 comments on commit f193ee2

Please sign in to comment.