Skip to content

Commit

Permalink
Merge pull request #114 from fosslight/develop
Browse files Browse the repository at this point in the history
Bug fix to print column
  • Loading branch information
bjk7119 authored Jun 5, 2024
2 parents 46ce616 + 8e52dd3 commit 2141e5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/fosslight_binary/binary_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
windows = False
BYTES = 2048

JAR_VUL_HEADER = {'BIN_FL_Binary': ['ID', 'Binary Path', 'OSS Name',
BIN_EXT_HEADER = {'BIN_FL_Binary': ['ID', 'Binary Path', 'OSS Name',
'OSS Version', 'License', 'Download Location',
'Homepage', 'Copyright Text', 'Exclude',
'Comment', 'Vulnerability Link', 'TLSH', 'SHA1']}
Expand Down Expand Up @@ -141,7 +141,6 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
db_loaded_cnt = 0
success_to_write = False
writing_msg = ""
extended_header = {}
hide_header = {'TLSH', "SHA1"}
content_list = []
result_file = ""
Expand Down Expand Up @@ -177,7 +176,6 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
owasp_items, vulnerability_items, success = analyze_jar_file(path_to_find_bin, abs_path_to_exclude)
if success:
return_list = merge_binary_list(owasp_items, vulnerability_items, return_list)
extended_header = JAR_VUL_HEADER
else:
logger.warning("Could not find OSS information for some jar files.")

Expand All @@ -200,7 +198,7 @@ def find_binaries(path_to_find_bin, output_dir, format, dburl="", simple_mode=Fa
cover.comment += "(No binary detected.) "
cover.comment += f"/ Total number of files: {total_file_cnt}"
success_to_write, writing_msg, result_file = write_output_file(result_report, output_extension, sheet_list,
extended_header, hide_header, cover)
BIN_EXT_HEADER, hide_header, cover)
except Exception as ex:
error_occured(error_msg=str(ex), exit=False)

Expand Down

0 comments on commit 2141e5d

Please sign in to comment.