Skip to content

Commit

Permalink
Merge pull request #151 from fosslight/dev_scanoss_thread
Browse files Browse the repository at this point in the history
Change SCANOSS thread using -c option
  • Loading branch information
JustinWonjaePark authored Feb 29, 2024
2 parents 4314c57 + cb6f05b commit 95e215b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/fosslight_source/_help.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
-s <scanner>\t Select which scanner to be run (scancode, scanoss, all)
-j\t\t\t Generate raw result of scanners in json format
-t <float>\t\t Stop scancode scanning if scanning takes longer than a timeout in seconds.
-c <core>\t\t Select the number of cores to be scanned with ScanCode.
-c <core>\t\t Select the number of cores to be scanned with ScanCode or threads with SCANOSS.
--no_correction\t Enter if you don't want to correct OSS information with sbom-info.yaml
--correct_fpath <path> Path to the sbom-info.yaml file"""

Expand Down
2 changes: 1 addition & 1 deletion src/fosslight_source/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def run_scanners(path_to_scan, output_file_name="", write_json_file=False, num_c
print_matched_text, format, called_by_cli,
time_out, correct_mode, correct_filepath)
if selected_scanner == 'scanoss' or selected_scanner == 'all' or selected_scanner == '':
scanoss_result = run_scanoss_py(path_to_scan, output_file_name, format, True, write_json_file)
scanoss_result = run_scanoss_py(path_to_scan, output_file_name, format, True, write_json_file, num_cores)
if selected_scanner in SCANNER_TYPE:
spdx_downloads = get_spdx_downloads(path_to_scan)
merged_result = merge_results(scancode_result, scanoss_result, spdx_downloads)
Expand Down

0 comments on commit 95e215b

Please sign in to comment.