-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
214 lines (214 loc) · 7.47 KB
/
package.json
File metadata and controls
214 lines (214 loc) · 7.47 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
{
"name": "pipeline-check",
"displayName": "Pipeline-Check",
"description": "Lint CI/CD pipelines for 22 providers against OWASP Top 10 CI/CD Risks and 14 other compliance frameworks. 810+ rules, inline in your editor.",
"version": "0.1.1",
"publisher": "greylag-ci",
"license": "MIT",
"icon": "icon.png",
"galleryBanner": {
"color": "#04101a",
"theme": "dark"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Linters",
"Other"
],
"keywords": [
"ci",
"cd",
"security",
"pipeline",
"github-actions",
"gitlab-ci",
"terraform",
"cloudformation",
"kubernetes",
"helm",
"dockerfile"
],
"repository": {
"type": "git",
"url": "https://github.com/greylag-ci/pipeline-check-vscode.git"
},
"bugs": {
"url": "https://github.com/greylag-ci/pipeline-check-vscode/issues"
},
"qna": "https://github.com/greylag-ci/pipeline-check-vscode/discussions",
"homepage": "https://github.com/greylag-ci/pipeline-check-vscode#readme",
"main": "./dist/extension.js",
"activationEvents": [
"workspaceContains:**/.github/workflows/*.yml",
"workspaceContains:**/.github/workflows/*.yaml",
"workspaceContains:**/.gitlab-ci.yml",
"workspaceContains:**/azure-pipelines.yml",
"workspaceContains:**/bitbucket-pipelines.yml",
"workspaceContains:**/.circleci/config.yml",
"workspaceContains:**/cloudbuild.yaml",
"workspaceContains:**/.buildkite/pipeline.yml",
"workspaceContains:**/.drone.yml",
"workspaceContains:**/.drone.yaml",
"workspaceContains:**/Jenkinsfile",
"workspaceContains:**/Dockerfile",
"workspaceContains:**/Containerfile"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Pipeline-Check spawns the configured Python interpreter to analyze workflow files. In untrusted workspaces the extension stays inactive until the workspace is trusted."
},
"virtualWorkspaces": false
},
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "pipelineCheck",
"title": "Pipeline-Check",
"icon": "media/pipeline-check.svg"
}
]
},
"views": {
"pipelineCheck": [
{
"id": "pipelineCheck.findings",
"name": "Findings",
"contextualTitle": "Pipeline-Check"
}
]
},
"viewsWelcome": [
{
"view": "pipelineCheck.findings",
"contents": "Pipeline-Check scans CI/CD configurations for OWASP Top 10 CI/CD risks and 14 other compliance frameworks.\n\nOpen a workflow, Dockerfile, or other supported config and findings will appear here.\n\nNot seeing findings on a file you expect to be scanned? [Restart the language server](command:pipelineCheck.restart) or [view the log](command:pipelineCheck.showLog)."
}
],
"commands": [
{
"command": "pipelineCheck.restart",
"title": "Restart language server",
"category": "Pipeline-Check"
},
{
"command": "pipelineCheck.showLog",
"title": "Show language server output",
"category": "Pipeline-Check"
},
{
"command": "pipelineCheck.findings.refresh",
"title": "Refresh",
"category": "Pipeline-Check",
"icon": "$(refresh)"
},
{
"command": "pipelineCheck.findings.changeGrouping",
"title": "Change Grouping",
"category": "Pipeline-Check",
"icon": "$(list-tree)"
}
],
"menus": {
"view/title": [
{
"command": "pipelineCheck.findings.changeGrouping",
"when": "view == pipelineCheck.findings",
"group": "navigation@1"
},
{
"command": "pipelineCheck.findings.refresh",
"when": "view == pipelineCheck.findings",
"group": "navigation@9"
}
],
"commandPalette": [
{
"command": "pipelineCheck.findings.refresh",
"when": "view == pipelineCheck.findings"
},
{
"command": "pipelineCheck.findings.changeGrouping",
"when": "view == pipelineCheck.findings"
}
]
},
"configuration": {
"type": "object",
"title": "Pipeline-Check",
"properties": {
"pipelineCheck.serverCommand": {
"type": "string",
"default": "python",
"scope": "machine-overridable",
"markdownDescription": "Command used to launch the language server. Defaults to `python`; override if `pipeline_check` is installed under a different interpreter (e.g. `python3`, or an absolute path to a virtualenv interpreter). An absolute path is recommended — a bare name resolves through `PATH`, which a workspace can manipulate. Scope is `machine-overridable`: workspace overrides require an explicit prompt."
},
"pipelineCheck.serverArgs": {
"type": "array",
"items": {
"type": "string"
},
"default": [
"-m",
"pipeline_check.lsp"
],
"scope": "machine-overridable",
"markdownDescription": "Arguments passed to the server command. Default invokes the module via `python -m pipeline_check.lsp`. Scope is `machine-overridable`: workspace overrides require an explicit prompt, since arbitrary args can execute arbitrary code (e.g. `-c \"...\"`)."
},
"pipelineCheck.severityThreshold": {
"type": "string",
"enum": [
"low",
"medium",
"high",
"critical"
],
"default": "low",
"markdownDescription": "Lowest severity that produces a diagnostic. Findings below this level are dropped on the client side so the gutter / Problems panel only carries the cuts you care about. Mirrors the CLI's `--severity-threshold`. Default `low` matches CLI behavior; set to `high` or `critical` for a quieter editor."
},
"pipelineCheck.trace.server": {
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"markdownDescription": "Traces LSP traffic between the editor and the `pipeline_check.lsp` server. Set to `verbose` when debugging."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run typecheck && npm run bundle:prod",
"compile": "npm run typecheck && npm run bundle:dev",
"typecheck": "tsc -p ./ --noEmit",
"bundle:dev": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --sourcemap",
"bundle:prod": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --minify",
"watch": "esbuild ./src/extension.ts --bundle --outfile=dist/extension.js --external:vscode --format=cjs --platform=node --sourcemap --watch",
"lint": "eslint src --ext ts",
"test": "vitest run",
"test:watch": "vitest",
"smoke": "node scripts/smoke.js",
"package": "vsce package",
"publish:vsce": "vsce publish --packagePath",
"publish:ovsx": "ovsx publish"
},
"dependencies": {
"vscode-languageclient": "^9.0.1"
},
"devDependencies": {
"@types/node": "^25.9.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.0",
"@vscode/vsce": "^3.9.1",
"esbuild": "^0.28.0",
"eslint": "^8.56.0",
"ovsx": "^0.10.12",
"typescript": "^5.4.0",
"vitest": "^4.1.6"
}
}