-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
185 lines (185 loc) · 5.42 KB
/
Copy pathpackage.json
File metadata and controls
185 lines (185 loc) · 5.42 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
{
"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.1",
"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": {
"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)"
}
],
"configuration": {
"title": "DevGuard",
"properties": {
"devguard.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.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": {
"@noble/curves": "1.9.7",
"jsonc-parser": "3.3.1"
}
}