-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
126 lines (126 loc) · 4.25 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
{
"name": "secret-stack",
"displayName": "SecretStack",
"description": "Scan your Visual Studio Code workspace for exposed secrets and improve code security.",
"version": "1.0.0",
"type": "commonjs",
"icon": "src/assets/img/secret-stack-logo128.png",
"author": "Arpit Gupta",
"publisher": "ArpitStack",
"repository": {
"type": "git",
"url": "https://github.com/ArpitStack/secret-stack.git"
},
"bugs": {
"url": "https://github.com/ArpitStack/secret-stack/issues"
},
"homepage": "https://github.com/ArpitStack/secret-stack#readme",
"keywords": [
"secret-stack",
"vscode-extension",
"security",
"secret-scanning",
"encryption"
],
"engines": {
"vscode": "^1.77.0"
},
"main": "./out/main.js",
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [
{
"command": "secret-stack.startScan",
"title": "Scan Workspace or Folder for Exposed Secrets",
"category": "SecretStack"
}
],
"configuration": {
"properties": {
"secret-stack.customPatterns": {
"type": "array",
"default": [],
"description": "Custom patterns to detect secrets in your code.",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The name of the pattern (e.g., 'GitHub Token')."
},
"regex": {
"type": "string",
"description": "The regular expression for matching the secret."
},
"severity": {
"type": "string",
"enum": [
"Low",
"Medium",
"High"
],
"default": "Medium",
"description": "The severity level of the detected secret."
}
},
"required": [
"name",
"regex"
]
}
},
"secret-stack.excludeFiles": {
"type": "array",
"default": [
"**/node_modules",
"**/dist",
"**/*.min.js",
"**/package-lock.json",
".git",
".vscode",
".secret-stack"
],
"description": "Files or folders to exclude from secret scanning.",
"items": {
"type": "string",
"description": "Pattern for excluding files or directories."
}
},
"secret-stack.addToGitIgnore": {
"type": "boolean",
"default": true,
"description": "Automatically add the .secret-stack folder to .gitignore to prevent Git tracking."
}
}
}
},
"scripts": {
"compile": "tsc -p ./",
"lint": "eslint src/**/*.ts",
"test": "jest --coverage"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"moduleNameMapper": {
"vscode": "<rootDir>/__mocks__/vscode.ts"
}
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"@types/jest": "^29.5.14",
"@types/node": "^22.10.1",
"@types/vscode": "1.77",
"@vscode/test-electron": "^2.4.1",
"@vscode/vsce": "^3.2.1",
"jest": "^29.7.0",
"ts-jest": "^29.2.5",
"typescript": "^5.7.2"
},
"license": "Apache-2.0",
"dependencies": {
"fs-extra": "^11.2.0"
}
}