forked from XmirrorSecurity/OpenSCA-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.json
118 lines (94 loc) · 2.13 KB
/
config.json
1
2
3
4
5
6
7
8
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
// 检测项目路径
// project path
// support http(s)/ftp/file protocol
"path": "",
// 导出报告路径
// report path
// suport ext: html/json/xml/csv/sqlite/cdx/spdx/swid/dsdx
"out": "output.json,output.html",
// 检测日志路径
// log path
"log": "opensca.log",
// opensca 配置项
// opensca optional
"optional": {
// 开启ui
// open ui
"ui": false,
// 相同组件仅保留一条数据 检出路径合并
// delete duplicate components and merge path
"dedup": false,
// 仅检测目录(跳过压缩包)
// only detect directory (skip compress file)
"dir": false,
// 仅保留漏洞组件
// only save components with vulnerability
"vuln": false,
// 开启进度条
// open progress bar
"progress": true,
// 保留开发组件
// save develop components
"dev": true,
// 开启 TLS 验证
// use tls verify, default: false
"tls": false,
// 全局http代理
// global proxy for http requests, eg: http://127.0.0.1:7890
"proxy": ""
},
// 组件仓库配置
// repo config
"repo": {
// maven repo
"maven": [
{
"url": "https://maven.aliyun.com/repository/public",
// 认证信息 没有可不填
// auth info, not required
"username": "",
"password": ""
},
{
"url": "https://repo.maven.apache.org/maven2/"
}
],
// npm repo
"npm": [
{
"url": "https://registry.npmmirror.com"
}
],
// composer repo
"composer": [
{
"url":"https://mirrors.aliyun.com/composer/p2"
}
]
},
// 数据库源
// database origin
"origin": {
// opensca web service url
"url": "https://opensca.xmirror.cn",
// opensca web service token
"token": "",
// opensca saas project id, not required
// "proj": "",
// json dbfile
"json": "",
// mysql origin
"mysql": {
// user:password@tcp(ip:port)/dbname
"dsn": "",
"table": ""
},
// sqlite origin
"sqlite": {
// sqlite dbfile
"dsn": "",
"table": ""
}
}
}