generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
301 lines (301 loc) · 13.1 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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
{
"name": "vs-code-extension-for-project-credential-digger",
"displayName": "VS Code extension for project \"Credential Digger\"",
"description": "Runs credential digger scan",
"version": "1.3.1",
"icon": "resources/logo-CD.png",
"keywords": [
"Credential Digger",
"SAP"
],
"repository": {
"type": "git",
"url": "https://github.com/SAP/vs-code-extension-for-project-credential-digger"
},
"publisher": "SAPOSS",
"license": "Apache-2.0",
"engines": {
"vscode": "^1.76.0"
},
"pricing": "Free",
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "vs-code-extension-for-project-credential-digger.credentialDiggerScan",
"title": "Credential Digger: Scan"
},
{
"command": "vs-code-extension-for-project-credential-digger.credentialDiggerAddRules",
"title": "Credential Digger: Add Rules"
}
],
"configuration": {
"id": "credentialDigger",
"title": "Credential Digger",
"required": [
"credentialDigger.credentialDiggerRunner.type"
],
"properties": {
"credentialDigger.filterPattern": {
"type": "array",
"description": "Specifies the files to exclude from the scan",
"default": [],
"items": {
"type": "string"
}
},
"credentialDigger.rules": {
"type": "string",
"description": "Specifies the path to the rules file"
},
"credentialDigger.credentialDiggerRunner.type": {
"type": "string",
"description": "Specifies the Credential Digger runner mode",
"enum": [
"docker",
"webserver",
"binary"
],
"enumDescriptions": [
"Specifies whether the Credential Digger is running on a Docker container",
"Specifies whether the Credential Digger is running on a Webserver",
"Specifies whether the Credential Digger is running as binary"
]
},
"credentialDigger.credentialDiggerRunner.docker": {
"type": "object",
"description": "Specifies the configuration when the Credential Digger is running on a Docker container",
"properties": {
"containerId": {
"type": "string",
"description": "The container ID where the Credential Digger is running"
},
"databaseConfig": {
"type": "object",
"description": "Specifies the database used by the Credential Digger",
"properties": {
"type": {
"type": "string",
"default": "sqlite",
"enum": [
"sqlite",
"postgres"
],
"enumDescriptions": [
"Specifies whether the Credential Digger is using SQLite DB",
"Specifies whether the Credential Digger is using Postgres DB"
]
},
"sqlite": {
"type": "object",
"description": "Specifies the SQLite DB configuration",
"properties": {
"filename": {
"type": "string",
"description": "Specifies the SQLite DB file path"
}
}
},
"postgres": {
"type": "object",
"description": "Specifies the Postgres DB configuration",
"properties": {
"envFile": {
"type": "string",
"description": "Specifies the path to an environment file"
}
}
}
}
}
}
},
"credentialDigger.credentialDiggerRunner.binary": {
"type": "object",
"description": "Specifies the configuration when the Credential Digger is installed locally",
"properties": {
"path": {
"type": "string",
"description": "Specifies the Credential Digger full path"
},
"databaseConfig": {
"type": "object",
"description": "Specifies the database used by the Credential Digger",
"properties": {
"type": {
"type": "string",
"default": "sqlite",
"enum": [
"sqlite",
"postgres"
],
"enumDescriptions": [
"Specifies whether the Credential Digger is using SQLite DB",
"Specifies whether the Credential Digger is using Postgres DB"
]
},
"sqlite": {
"type": "object",
"description": "Specifies the SQLite DB configuration",
"properties": {
"filename": {
"type": "string",
"description": "Specifies the SQLite DB file path"
}
}
},
"postgres": {
"type": "object",
"description": "Specifies the Postgres DB configuration",
"properties": {
"envFile": {
"type": "string",
"description": "Specifies the path to an environment file"
}
}
}
}
}
}
},
"credentialDigger.credentialDiggerRunner.webserver": {
"type": "object",
"description": "Specifies the configuration when the Credential Digger is running on a Webserver",
"properties": {
"host": {
"type": "string",
"description": "Specifies the URL of the Credential Digger"
},
"envFile": {
"type": "string",
"description": "Specifies the path to an environment file"
},
"certificateValidation": {
"type": "boolean",
"default": true,
"description": "Specifies whether to validate the Credential Digger webserver certificate"
}
}
},
"credentialDigger.openaiCallMode": {
"type": "string",
"description": "Specifies the way you want to call OpenAI API",
"enum": [
"BTP OpenAI",
"OpenAI"
],
"enumDescriptions": [
"OpenAI instance running on BTP (the extension use Azure OpenAI gpt-4 model)",
"OpenAI from https://openai.com/"
]
},
"credentialDigger.openaiKeyPath": {
"type": "string",
"description": "Full path to the file with the key\n- BTP OpenAI: a json file with a 'client credentials token' from a Multi-tenant BTP service proxy for third-party LLM APIs \n- OpenAI: a txt file with a key from https://openai.com/. \n"
}
}
}
},
"scripts": {
"commit": "cz",
"rimraf": "rimraf -I",
"copyfiles": "copyfiles",
"esbuild": "esbuild",
"prepare": "husky install",
"clean": "npm run rimraf -- node_modules .vscode-test out .nyc_output coverage mochawesome-report",
"lint": "eslint src --ext ts",
"lint:fix": "eslint src --ext ts --fix .",
"format": "prettier --check .",
"format:fix": "prettier --write",
"esbuild:base": "npm run rimraf -- out && npm run esbuild -- ./src/extension.ts --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node --external:deasync",
"build": "npm run esbuild:base -- --sourcemap",
"build:watch": "npm run esbuild:base -- --sourcemap --watch",
"generate:release": "standard-version",
"vscode:prepublish": "npm run -S esbuild:base -- --minify",
"package": "vsce package --ignoreFile .vscodeignore",
"publish": "vsce publish",
"unpublish": "vsce unpublish",
"copy:build-files": "npm run copyfiles -- package.json",
"copy:test-files": "npm run copyfiles -- -f src/test/unit/data/* out/test/unit/data",
"pretest": "npm run rimraf -- out .nyc_output coverage mochawesome-report && tsc -p ./ && npm run copy:test-files && npm run copy:build-files -- out",
"test": "node ./out/test/runTest.js",
"test:unit": "npm run pretest && node ./out/test/runTest.js unit",
"test:integration": "npm run pretest && node ./out/test/runTest.js integration"
},
"devDependencies": {
"@commitlint/cli": "17.6.6",
"@commitlint/config-conventional": "17.6.5",
"@faker-js/faker": "8.0.2",
"@istanbuljs/nyc-config-typescript": "1.0.2",
"@types/chai": "4.3.5",
"@types/glob": "8.1.0",
"@types/lodash": "4.14.195",
"@types/mocha": "10.0.1",
"@types/mochawesome": "6.2.1",
"@types/node": "18.17.1",
"@types/sinon": "10.0.15",
"@types/tough-cookie": "4.0.2",
"@types/vscode": "1.76.0",
"@typescript-eslint/eslint-plugin": "5.60.0",
"@typescript-eslint/parser": "5.53.0",
"@vscode/test-electron": "2.3.10",
"@vscode/vsce": "2.19.0",
"chai": "4.3.8",
"commitizen": "4.3.0",
"copyfiles": "2.4.1",
"cz-conventional-changelog": "3.3.0",
"esbuild": "0.19.2",
"eslint": "8.42.0",
"eslint-config-prettier": "8.8.0",
"eslint-plugin-import": "2.28.1",
"glob": "10.3.3",
"husky": "8.0.3",
"lint-staged": "13.2.2",
"mocha": "10.2.0",
"mocha-explorer-launcher-scripts": "0.4.0",
"mochawesome": "7.1.3",
"mochawesome-report-generator": "6.2.0",
"nyc": "15.1.0",
"prettier": "2.8.8",
"rimraf": "5.0.1",
"sinon": "15.2.0",
"source-map-support": "0.5.21",
"standard-version": "9.5.0",
"typescript": "5.0.4"
},
"dependencies": {
"@vscode-logging/logger": "1.2.3",
"axios": "1.6.1",
"csv-parse": "5.4.0",
"dotenv": "16.3.1",
"form-data": "4.0.0",
"http-cookie-agent": "5.0.4",
"ignore": "5.2.4",
"lodash": "4.17.21",
"tough-cookie": "4.1.3"
},
"overrides": {
"@typescript-eslint/typescript-estree": "^5.59.7"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.ts": "npm run lint:fix",
"*": "npm run format:fix"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}