fosslight-scanner 2.1.15__py3-none-any.whl → 2.1.17__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- fosslight_scanner/_help.py +80 -45
- {fosslight_scanner-2.1.15.dist-info → fosslight_scanner-2.1.17.dist-info}/METADATA +1 -1
- {fosslight_scanner-2.1.15.dist-info → fosslight_scanner-2.1.17.dist-info}/RECORD +7 -7
- {fosslight_scanner-2.1.15.dist-info → fosslight_scanner-2.1.17.dist-info}/WHEEL +0 -0
- {fosslight_scanner-2.1.15.dist-info → fosslight_scanner-2.1.17.dist-info}/entry_points.txt +0 -0
- {fosslight_scanner-2.1.15.dist-info → fosslight_scanner-2.1.17.dist-info}/licenses/LICENSE +0 -0
- {fosslight_scanner-2.1.15.dist-info → fosslight_scanner-2.1.17.dist-info}/top_level.txt +0 -0
fosslight_scanner/_help.py
CHANGED
|
@@ -6,51 +6,86 @@ from fosslight_util.help import PrintHelpMsg
|
|
|
6
6
|
from fosslight_util.output_format import SUPPORT_FORMAT
|
|
7
7
|
|
|
8
8
|
_HELP_MESSAGE_SCANNER = f"""
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
9
|
+
📖 Usage
|
|
10
|
+
────────────────────────────────────────────────────────────────────
|
|
11
|
+
fosslight [mode] [options] <arguments>
|
|
12
|
+
|
|
13
|
+
📝 Description
|
|
14
|
+
────────────────────────────────────────────────────────────────────
|
|
15
|
+
FOSSLight Scanner performs comprehensive open source analysis by running
|
|
16
|
+
multiple modes (Source, Dependency, Binary) together. It can download
|
|
17
|
+
source code from URLs (git/wget) or analyze local paths, and generates
|
|
18
|
+
results in OSS Report format.
|
|
19
|
+
|
|
20
|
+
📚 Guide: https://fosslight.org/fosslight-guide/scanner/
|
|
21
|
+
|
|
22
|
+
🔧 Modes
|
|
23
|
+
────────────────────────────────────────────────────────────────────
|
|
24
|
+
all (default) Run all modes (Source, Dependency, Binary)
|
|
25
|
+
source Run FOSSLight Source analysis only
|
|
26
|
+
dependency Run FOSSLight Dependency analysis only
|
|
27
|
+
binary Run FOSSLight Binary analysis only
|
|
28
|
+
compare Compare two FOSSLight reports
|
|
29
|
+
|
|
30
|
+
Note: Multiple modes can be specified separated by comma
|
|
31
|
+
Example: fosslight source,binary -p /path/to/analyze
|
|
32
|
+
|
|
33
|
+
⚙️ General Options
|
|
34
|
+
────────────────────────────────────────────────────────────────────
|
|
35
|
+
-p <path> Path to analyze
|
|
36
|
+
• Compare mode: path to two FOSSLight reports (excel/yaml)
|
|
37
|
+
-w <url> URL to download and analyze (git clone or wget)
|
|
38
|
+
-f <format> Output format ({', '.join(SUPPORT_FORMAT)})
|
|
39
|
+
• Compare mode: excel, json, yaml, html
|
|
40
|
+
• Multiple formats: ex) -f excel yaml json (separated by space)
|
|
41
|
+
-e <pattern> Exclude paths from analysis (files and directories)
|
|
42
|
+
⚠️ IMPORTANT: Always wrap in quotes to avoid shell expansion
|
|
43
|
+
Example: fosslight -e "test/" "*.jar"
|
|
44
|
+
-o <path> Output directory or file name
|
|
45
|
+
-c <number> Number of processes for source analysis
|
|
46
|
+
-r Keep raw data from scanners
|
|
47
|
+
-t Hide progress bar
|
|
48
|
+
-h Show this help message
|
|
49
|
+
-v Show version information
|
|
50
|
+
-s <path> Apply settings from JSON file(check format with 'setting.json' in this repository)
|
|
51
|
+
Note: CLI flags override settings file
|
|
52
|
+
Example: -f yaml -s setting.json → output is .yaml
|
|
53
|
+
--no_correction Skip OSS information correction with sbom-info.yaml
|
|
54
|
+
--correct_fpath <path> Path to sbom-info.yaml file for correction
|
|
55
|
+
--recursive_dep Recursively analyze dependencies
|
|
56
|
+
|
|
57
|
+
🔍 Mode-Specific Options
|
|
58
|
+
────────────────────────────────────────────────────────────────────
|
|
59
|
+
For 'all' or 'binary' mode:
|
|
60
|
+
-u <db_url> Database connection string
|
|
61
|
+
Format: postgresql://username:password@host:port/database
|
|
62
|
+
|
|
63
|
+
For 'all' or 'dependency' mode:
|
|
64
|
+
-d <args> Additional arguments for dependency analysis
|
|
65
|
+
|
|
66
|
+
💡 Examples
|
|
67
|
+
────────────────────────────────────────────────────────────────────
|
|
68
|
+
# Scan current directory with all scanners
|
|
69
|
+
fosslight
|
|
70
|
+
|
|
71
|
+
# Scan specific path with exclusions
|
|
72
|
+
fosslight -p /path/to/source -e "test/" "node_modules/" "*.pyc"
|
|
73
|
+
|
|
74
|
+
# Generate output in specific format
|
|
75
|
+
fosslight -p /path/to/source -f yaml
|
|
76
|
+
|
|
77
|
+
# Run specific modes only
|
|
78
|
+
fosslight source,dependency -p /path/to/source
|
|
79
|
+
|
|
80
|
+
# Download and analyze from git repository
|
|
81
|
+
fosslight -w https://github.com/user/repo.git -o result_dir
|
|
82
|
+
|
|
83
|
+
# Compare two FOSSLight reports
|
|
84
|
+
fosslight compare -p report_v1.xlsx report_v2.xlsx -f excel
|
|
85
|
+
|
|
86
|
+
# Run with database connection for binary analysis
|
|
87
|
+
fosslight binary -p /path/to/binary -u "postgresql://user:pass@localhost:5432/sample"
|
|
88
|
+
"""
|
|
54
89
|
|
|
55
90
|
|
|
56
91
|
def print_help_msg():
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
fosslight_scanner/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
2
|
fosslight_scanner/_get_input.py,sha256=f78M57QU7Lhw1VfZJKvYXbGsUiYMViPz1---UDIbV9I,1396
|
|
3
|
-
fosslight_scanner/_help.py,sha256=
|
|
3
|
+
fosslight_scanner/_help.py,sha256=XksjW1Q4t61vlRzoPfrcjt0-VHz2K8vrkOgPA7hsOqk,5009
|
|
4
4
|
fosslight_scanner/_parse_setting.py,sha256=htxNNvhizZ2ZT18Aw6ihKuBpOMAyptkbMS5Z0_Xh5mQ,2551
|
|
5
5
|
fosslight_scanner/_run_compare.py,sha256=zmzX-FIvWCSkwPvEA3iHfVpyg6QDGUCpw3tJuGLdPWM,10657
|
|
6
6
|
fosslight_scanner/cli.py,sha256=vz_oGevbejqo3tHa4z6d-Ft0xu-gP9Pg-VmXb9IhO_s,6910
|
|
7
7
|
fosslight_scanner/common.py,sha256=FyEoqVsIZ4pRIlHRXZES8PYaYfy3PEmUaOn02YSuuYU,8377
|
|
8
8
|
fosslight_scanner/fosslight_scanner.py,sha256=5FncXIl2sMNOQWkbAOsfyF1907z571SDnYUvuifR-fM,23172
|
|
9
9
|
fosslight_scanner/resources/bom_compare.html,sha256=VocJ9bDmQQOwfGyvXatPZ4W-QddO-IlsAvKdO0nZ7pA,2240
|
|
10
|
-
fosslight_scanner-2.1.
|
|
11
|
-
fosslight_scanner-2.1.
|
|
12
|
-
fosslight_scanner-2.1.
|
|
13
|
-
fosslight_scanner-2.1.
|
|
14
|
-
fosslight_scanner-2.1.
|
|
15
|
-
fosslight_scanner-2.1.
|
|
10
|
+
fosslight_scanner-2.1.17.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
11
|
+
fosslight_scanner-2.1.17.dist-info/METADATA,sha256=2C09mzH_gD5op7thhJ2k8MXnV7A05N5iM3evaR7gEA0,8777
|
|
12
|
+
fosslight_scanner-2.1.17.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
|
13
|
+
fosslight_scanner-2.1.17.dist-info/entry_points.txt,sha256=dl7AA0_Jqnq0NHuCEaxcJFgstLw3sod_-FGtcgZuJbs,104
|
|
14
|
+
fosslight_scanner-2.1.17.dist-info/top_level.txt,sha256=43_xLb5KYpy8wOU1H2Wd2fEsWBY7Dg6ZEJJXkfT64Ak,18
|
|
15
|
+
fosslight_scanner-2.1.17.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|