-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
219 lines (219 loc) · 6.44 KB
/
Copy pathpackage.json
File metadata and controls
219 lines (219 loc) · 6.44 KB
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
{
"name": "devguard",
"displayName": "DevGuard",
"description": "Inline dependency risk insights for npm and go (malicious flag, known vulnerabilities, release age, transitive dependency count and OpenSSF scorecard), dependency proxy setup, Git-hooks setup and background SAST scan on-save. Powered by DevGuard.",
"version": "0.1.5",
"publisher": "l3montree",
"engines": {
"vscode": "^1.120.0"
},
"categories": [
"Linters",
"Other"
],
"keywords": [
"devguard",
"security",
"sca",
"sbom",
"vulnerabilities",
"scorecard",
"npm"
],
"activationEvents": [
"onLanguage:json",
"onLanguage:jsonc",
"workspaceContains:**/package.json",
"workspaceContains:**/go.mod"
],
"main": "./out/extension.js",
"contributes": {
"viewsWelcome": [
{
"view": "devguard-vex-editor",
"contents": "There are no VEX documents in your project. Add a VEX Document to your workspace to trigger the extension."
}
],
"viewsContainers": {
"activitybar": [
{
"id": "devguard-vex-editor-view-container",
"title": "DevGuard",
"icon": "public/assets/devguard.svg"
}
]
},
"views": {
"devguard-vex-editor-view-container": [
{
"id": "devguard-vex-editor",
"name": "DevGuard VEX Editor",
"icon": "public/assets/devguard.svg"
}
]
},
"commands": [
{
"command": "devguard.connect",
"title": "DevGuard: Connect (Personal Access Token)"
},
{
"command": "devguard.disconnect",
"title": "DevGuard: Disconnect"
},
{
"command": "devguard.selectAsset",
"title": "DevGuard: Select Organization / Project / Asset"
},
{
"command": "devguard.refresh",
"title": "DevGuard: Refresh Dependency Insights",
"icon": "$(refresh)"
},
{
"command": "devguard.setupDependencyProxy",
"title": "DevGuard: Set Up Dependency Proxy (.npmrc)"
},
{
"command": "devguard.viewSbom",
"title": "DevGuard: View SBOM for Selected Asset"
},
{
"command": "devguard.generateSbom",
"title": "DevGuard: Generate SBOM (Run devguard-scanner SCA)"
},
{
"command": "devguard.setupGitHooks",
"title": "DevGuard: Setup Pre-Commit-Hooks for git"
},
{
"command": "devguard.removeGitHooks",
"title": "DevGuard: Removes Pre-Commit-Hooks for git that were previously setup by DevGuard"
},
{
"command": "devguard.generateVEX",
"title": "DevGuard: Generate VEX (Run devguard-scanner SCA)"
},
{
"command": "devguard.setVexStatus",
"title": "DevGuard: Set VEX Status"
}
],
"configuration": {
"title": "DevGuard",
"properties": {
"devguard.connection.apiUrl": {
"type": "string",
"default": "https://api.main.devguard.org",
"markdownDescription": "Base URL of the DevGuard backend. Only requests to this host are signed with your personal access token."
},
"devguard.connection.assetName": {
"type": "string",
"default": "",
"markdownDescription": "DevGuard Asset URI. Name of the asset in DevGuard you want to upload your information to."
},
"devguard.inlineDecorations.enabled": {
"type": "boolean",
"default": true,
"description": "Show inline end-of-line dependency risk badges in package.json."
},
"devguard.inlineDecorations.verbosity": {
"type": "string",
"enum": [
"compact",
"full"
],
"enumDescriptions": [
"Icons and counts only.",
"Also include release age and scorecard score."
],
"default": "full",
"description": "How much detail to show in the inline badge."
},
"devguard.request.concurrency": {
"type": "number",
"default": 6,
"minimum": 1,
"maximum": 16,
"description": "Maximum number of concurrent DevGuard API requests while enriching a package.json."
},
"devguard.request.timeoutMs": {
"type": "number",
"default": 8000,
"minimum": 1000,
"description": "Per-request timeout in milliseconds."
},
"devguard.cache.ttlMinutes": {
"type": "number",
"default": 720,
"minimum": 1,
"description": "How long package inspection results are cached before being refetched."
},
"devguard.scannerPath": {
"type": "string",
"default": "devguard-scanner",
"description": "Path to the devguard-scanner CLI used by 'Generate SBOM'. Must be on PATH or an absolute path."
},
"devguard.sast.enabled": {
"type": "boolean",
"default": true,
"description": "Enable SAST and IaC scanning."
}
}
},
"menus": {
"commandPalette": [
{
"command": "devguard.connect",
"when": "!devguard.connected"
},
{
"command": "devguard.disconnect",
"when": "devguard.connected"
},
{
"command": "devguard.selectAsset",
"when": "devguard.connected"
},
{
"command": "devguard.viewSbom",
"when": "devguard.connected && devguard.assetSelected"
},
{
"command": "devguard.generateSbom",
"when": "devguard.connected && devguard.assetSelected"
}
],
"editor/title": [
{
"command": "devguard.refresh",
"when": "resourceFilename == package.json",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src",
"test": "vscode-test"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "22.19.19",
"@types/vscode": "^1.120.0",
"@vscode/test-cli": "^0.0.12",
"@vscode/test-electron": "^2.5.2",
"eslint": "^9.39.3",
"typescript": "^5.9.3",
"typescript-eslint": "^8.56.1"
},
"dependencies": {
"@cyclonedx/cyclonedx-library": "10.1.0",
"@noble/curves": "1.9.7",
"jsonc-parser": "3.3.1"
}
}