You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/client/consolidated_file_report.py
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
1
'''
2
-
Created on August 23, 2023
2
+
Created on August 30, 2023
3
3
4
4
@author: mkoishi
5
5
6
6
Generate reports which consolidates information on BOM components, versions with license information, BOM files with
7
7
license and copyright information from KB and license search (discoveries - file licenses or file copyrights),
8
-
and BlackDuck unmatched files.
8
+
and BlackDuck unmatched files in the target source code.
9
9
10
10
Copyright (C) 2023 Synopsys, Inc.
11
11
http://www.synopsys.com/
@@ -44,9 +44,10 @@
44
44
fromzipfileimportZipFile
45
45
46
46
program_description= \
47
-
'''This script collects BlackDuck reports for version details and discoveries, and it generates new reports.
47
+
'''This script collects BlackDuck reports for version details and discoveries and generates new reports.
48
48
The newly generated reports are a report of BOM component-versions with license information, a report of BOM files that consolidates licenses and copyright texts information from KB and discoveries (e.g., file licenses, file copyrights), and a report of BlackDuck unmatched files.
49
-
Optionally, Synopsys-Detect can be executed from the script, and if it is selected, it runs in synchronous mode. Please consider adjusting the "detect.timeout" detect parameter because completion of Synopsys-Detect is estimated to take longer.
49
+
The generated reports are found in a folder named "blackduck_consolidated_file_report"
50
+
Synopsys-Detect is executed from the script unless skip-detect option is chosen. Synopsys-Detect runs in synchronous mode and please consider adjusting the "detect.timeout" detect parameter if completion of Synopsys-Detect is estimated to take longer.
50
51
51
52
Config file:
52
53
API Token, hub URL and two more options need to be placed in the .restconfig.json file that must be placed in the same folder where this script resides.
@@ -57,7 +58,7 @@
57
58
2) Install PyPI modules "blackduck", "ijson" and "json2html.
58
59
59
60
Examples:
60
-
1) If Synopsys-Detect is wanted to execute prior to the HTML report generation that includes file copyright texts, then
61
+
1) If Synopsys-Detect is wanted to execute prior to the HTML report generation and the report should include file-copyright texts, then
help="Specify the included copyright text level. Level 0 is no copyright texts included, 1 is only copyright texts from KB included, 2 is copyright texts from KB and discoveries included.")
176
+
help="Specify the included copyright text level. Level 0 (default value) is no copyright texts included, 1 is only copyright texts from KB included, 2 is copyright texts from KB and discoveries included.")
0 commit comments