-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathpackage.json
175 lines (175 loc) · 5.11 KB
/
package.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"name": "trivy-vulnerability-scanner",
"displayName": "Trivy Vulnerability Scanner",
"publisher": "AquaSecurityOfficial",
"description": "A VS Code extension for Trivy.",
"icon": "images/aqualogo.png",
"version": "0.7.1",
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onView:trivy.issueview",
"onCommand:trivy-vulnerability-scanner.scan",
"onCommand:trivy-vulnerability-scanner.explorer-run",
"onCommand:trivy-vulnerability-scanner.version"
],
"main": "./out/extension.js",
"contributes": {
"configuration": {
"title": "Trivy",
"properties": {
"trivy.binaryPath": {
"type": "string",
"default": "trivy",
"description": "Path to Trivy if not already on the PATH"
},
"trivy.debug": {
"type": "boolean",
"default": false,
"description": "Run Trivy with vebose flag to get more information"
},
"trivy.secretScanning": {
"type": "boolean",
"default": false,
"description": "Trivy should also scan for secrets, requires Trivy >=v0.27.0"
},
"trivy.offlineScan": {
"type": "boolean",
"default": false,
"description": "Run Trivy as an offline scan"
},
"trivy.fixedOnly": {
"type": "boolean",
"default": false,
"description": "Only return Trivy results for vulnerabilities with fixes"
},
"trivy.server.enable": {
"type": "boolean",
"default": false,
"description": "Connect to a trivy server, on a remote machine"
},
"trivy.server.url": {
"type": "string",
"default": "",
"description": "The remote trivy URL to connect to"
},
"trivy.minimumReportedSeverity": {
"type": "string",
"default": "UNKNOWN",
"enum": [
"CRITICAL",
"HIGH",
"MEDIUM",
"LOW",
"UNKNOWN"
],
"description": "Return Trivy results with severity greater than or equal to this setting."
}
}
},
"commands": [
{
"command": "trivy-vulnerability-scanner.scan",
"title": "Trivy Scan"
},
{
"command": "trivy-vulnerability-scanner.explorer-run",
"title": "Trivy: Run trivy against workspace",
"icon": {
"light": "resources/light/refresh.svg",
"dark": "resources/dark/refresh.svg"
}
},
{
"command": "trivy-vulnerability-scanner.refresh",
"title": "Trivy: Refresh the issue list"
},
{
"command": "trivy-vulnerability-scanner.version",
"title": "Trivy: Get the current version of Trivy"
}
],
"viewsContainers": {
"activitybar": [
{
"id": "trivy",
"title": "trivy",
"icon": "media/trivy.svg"
}
]
},
"views": {
"trivy": [
{
"id": "trivy.issueview",
"name": "Findings Explorer",
"icon": "media/trivy.svg",
"contextualTitle": "Findings Explorer"
},
{
"id": "trivy.helpview",
"name": "Findings Help",
"type": "webview",
"contextualTitle": "Findings Help"
}
]
},
"viewsWelcome": [
{
"view": "trivy.issueview",
"contents": "Click the button below to run Trivy against the current workspace.\n[Run Trivy now](command:trivy-vulnerability-scanner.explorer-run)\nTrivy configuration settings can be configured in the extension settings."
},
{
"view": "trivy.helpview",
"contents": "No check selected. Run Trivy and choose a failed check from the explorer"
}
],
"menus": {
"view/title": [
{
"command": "trivy-vulnerability-scanner.explorer-run",
"when": "view == trivy.issueview",
"group": "navigation@1"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-base -- --sourcemap",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"test-compile": "tsc -p ./",
"compile": "tsc -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/vscode": "^1.54.0",
"@types/glob": "^7.1.1",
"@types/mocha": "^7.0.2",
"@types/semver": "^7.3.6",
"@types/node": "^13.11.0",
"eslint": "^6.8.0",
"@typescript-eslint/parser": "^2.30.0",
"@typescript-eslint/eslint-plugin": "^2.30.0",
"esbuild": "^0.14.11",
"glob": "^7.1.6",
"mocha": "^8.4.0",
"typescript": "^4.5.4",
"vscode-test": "^1.5.0"
},
"repository": {
"url": "https://github.com/aquasecurity/trivy-vscode-extension"
},
"dependencies": {
"@types/uuid": "^8.3.4",
"semver": "^7.3.5",
"typescipt": "^1.0.0",
"uuid": "^8.3.2"
}
}