@grafana/plugin-validator 0.7.5 → 0.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -198
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,42 +1,49 @@
|
|
|
1
1
|
# Grafana Plugin Validator
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
|
+
[](https://drone.grafana.net/grafana/plugin-validator)
|
|
5
|
+
[](https://goreportcard.com/report/github.com/grafana/plugin-validator)
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
The tool helps speed up the process of publishing plugins to [Grafana.com](https://grafana.com/grafana/plugins/). It runs a series of [analyzers](#analyzers) to ensure plugins are following best practices; checking for security and structural issues, as well as specific requirements related to publishing. A general overview of these requirements can be found here: <https://grafana.com/docs/grafana/latest/developers/plugins/publishing-and-signing-criteria/>.
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
It requires a path to a remote or local ZIP archive of the plugin to be specified, for example:
|
|
8
10
|
|
|
9
|
-
|
|
11
|
+
- **Remote**: `https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip`
|
|
12
|
+
- **Local**: `file://Users/me/Downloads/grafana-clock-panel-2.1.2.zip`
|
|
10
13
|
|
|
11
|
-
|
|
14
|
+
You can **additionally** provide a link to the source code for the project with `-sourceCodeUri` to enable additional analyzers such as the Vulnerability Scan.
|
|
15
|
+
|
|
16
|
+
## Installation and usage
|
|
17
|
+
|
|
18
|
+
### Docker (recommended)
|
|
19
|
+
|
|
20
|
+
It is easiest to run the tool using the Docker image as it contains all the [security scanning tools](#security-tools) needed for the full set of analyzers - so you don't need to have these additional tools installed on your system.
|
|
12
21
|
|
|
13
22
|
```SHELL
|
|
14
|
-
docker run --pull=always grafana/plugin-validator-cli
|
|
23
|
+
docker run --pull=always grafana/plugin-validator-cli [options] [path/to/plugin_archive.zip]
|
|
15
24
|
```
|
|
16
25
|
|
|
17
|
-
Example
|
|
26
|
+
#### Example 1 (basic)
|
|
18
27
|
|
|
19
28
|
```SHELL
|
|
20
|
-
docker run --pull=always grafana/plugin-validator-cli
|
|
29
|
+
docker run --pull=always grafana/plugin-validator-cli https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip
|
|
21
30
|
```
|
|
22
31
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### With NPX
|
|
32
|
+
#### Example 2 (specifying source code location)
|
|
26
33
|
|
|
27
34
|
```SHELL
|
|
28
|
-
|
|
35
|
+
docker run --pull=always grafana/plugin-validator-cli -sourceCodeUri https://github.com/grafana/clock-panel/tree/v2.1.2 https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip
|
|
29
36
|
```
|
|
30
37
|
|
|
31
|
-
|
|
38
|
+
### NPX
|
|
32
39
|
|
|
33
40
|
```SHELL
|
|
34
|
-
npx -y @grafana/plugin-validator -sourceCodeUri
|
|
41
|
+
npx -y @grafana/plugin-validator@latest -sourceCodeUri [options] [path/to/plugin_archive.zip]
|
|
35
42
|
```
|
|
36
43
|
|
|
37
44
|
### Locally
|
|
38
45
|
|
|
39
|
-
First you must compile and install it
|
|
46
|
+
First you must compile and install it:
|
|
40
47
|
|
|
41
48
|
```SHELL
|
|
42
49
|
git clone git@github.com:grafana/plugin-validator.git
|
|
@@ -44,33 +51,52 @@ cd plugin-validator/pkg/cmd/plugincheck2
|
|
|
44
51
|
go install
|
|
45
52
|
```
|
|
46
53
|
|
|
47
|
-
Then you can run the utility
|
|
54
|
+
Then you can run the utility:
|
|
48
55
|
|
|
49
56
|
```SHELL
|
|
50
57
|
plugincheck2 -sourceCodeUri [source_code_location/] [plugin_archive.zip]
|
|
51
58
|
```
|
|
52
59
|
|
|
60
|
+
### Generating Local Files For Validation
|
|
61
|
+
|
|
62
|
+
You must create a `.zip` archive containing the `dist/` directory but named as your plugin ID.
|
|
63
|
+
|
|
64
|
+
```SHELL
|
|
65
|
+
PLUGIN_ID=$(grep '"id"' < src/plugin.json | sed -E 's/.*"id" *: *"(.*)".*/\1/')
|
|
66
|
+
cp -r dist "${PLUGIN_ID}"
|
|
67
|
+
zip -qr "${PLUGIN_ID}.zip" "${PLUGIN_ID}"
|
|
68
|
+
npx @grafana/plugin-validator@latest -sourceCodeUri file://. "${PLUGIN_ID}.zip"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
You can optionally remove the files that were generated:
|
|
72
|
+
|
|
73
|
+
```SHELL
|
|
74
|
+
rm -r "${PLUGIN_ID}" "${PLUGIN_ID}.zip"
|
|
75
|
+
```
|
|
76
|
+
|
|
53
77
|
## Options
|
|
54
78
|
|
|
79
|
+
Additional options can be passed to the tool:
|
|
80
|
+
|
|
55
81
|
```
|
|
56
82
|
❯ plugincheck2 -help
|
|
57
83
|
Usage plugincheck2:
|
|
58
84
|
-config string (optional)
|
|
59
85
|
Path to configuration file
|
|
60
86
|
-sourceCodeUri string (optional)
|
|
61
|
-
URI to the source code of the plugin. If set, the source code will be downloaded and analyzed. This can be a ZIP file URL,
|
|
87
|
+
URI to the source code of the plugin. If set, the source code will be downloaded and analyzed. This can be a ZIP file URL, a URL to git repository or a local file (starting with `file://`)
|
|
62
88
|
-strict (optional)
|
|
63
89
|
If set, plugincheck returns non-zero exit code for warnings
|
|
64
90
|
|
|
65
91
|
```
|
|
66
92
|
|
|
67
|
-
|
|
93
|
+
### Using a configuration file
|
|
68
94
|
|
|
69
|
-
You can pass a configuration file to the validator with the `-config` option. Several
|
|
95
|
+
You can pass a configuration YAML file to the validator with the `-config` option. Several configuration examples are available to use here <https://github.com/grafana/plugin-validator/tree/main/config>
|
|
70
96
|
|
|
71
|
-
|
|
97
|
+
#### Enabling and disabling analyzers via config
|
|
72
98
|
|
|
73
|
-
If you wish to disable an specific check (analyzer) you can define this in your configuration file adding an `analyzers` section and
|
|
99
|
+
If you wish to disable an specific check (analyzer) you can define this in your [configuration file](#using-a-configuration-file), adding an `analyzers` section and specifying which analyzer or analyzer rules to enable and disable.
|
|
74
100
|
|
|
75
101
|
E.g.: disable the `version` analyzer
|
|
76
102
|
|
|
@@ -103,22 +129,40 @@ analyzers:
|
|
|
103
129
|
|
|
104
130
|
Severity levels could be: `error`, `warning`, `ok`
|
|
105
131
|
|
|
106
|
-
|
|
132
|
+
> Note: Grafana Labs enforces its own configuration for plugins submissions and your own config file can't change these rules.
|
|
133
|
+
|
|
134
|
+
### Source code
|
|
135
|
+
|
|
136
|
+
You can specify the location of the plugin source code to the validator with the `-sourceCodeUri` option. Doing so allows for additional [analyzers](#analyzers) to be run and for a more complete scan.
|
|
137
|
+
|
|
138
|
+
### Supported remote Git services
|
|
139
|
+
|
|
140
|
+
The following **public** git services are supported
|
|
141
|
+
|
|
142
|
+
- GitHub
|
|
143
|
+
- GitLab
|
|
144
|
+
- Bitbucket
|
|
145
|
+
|
|
146
|
+
Private repositories are not currently supported.
|
|
147
|
+
|
|
148
|
+
Make sure to include the ref (branch or tag) of the corresponding source code.
|
|
149
|
+
|
|
150
|
+
e.g.: You are validating version `v2.1.2` and your project is in github. Make sure you create a corresponding tag or branch and use the url `https://github.com/grafana/clock-panel/tree/v2.1.2`
|
|
107
151
|
|
|
108
152
|
## Debug mode
|
|
109
153
|
|
|
110
154
|
You can run the validator in debug mode to get more information about the running checks and possible errors.
|
|
111
155
|
|
|
112
|
-
|
|
156
|
+
Docker:
|
|
113
157
|
|
|
114
158
|
```SHELL
|
|
115
159
|
docker run --pull=always -e DEBUG=1 grafana/plugin-validator-cli -sourceCodeUri https://github.com/grafana/clock-panel/tree/v2.1.2 https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip
|
|
116
160
|
```
|
|
117
161
|
|
|
118
|
-
|
|
162
|
+
NPX:
|
|
119
163
|
|
|
120
164
|
```SHELL
|
|
121
|
-
DEBUG=1 npx -y @grafana/plugin-validator -sourceCodeUri https://github.com/grafana/clock-panel/tree/v2.1.2 https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip
|
|
165
|
+
DEBUG=1 npx -y @grafana/plugin-validator@latest -sourceCodeUri https://github.com/grafana/clock-panel/tree/v2.1.2 https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip
|
|
122
166
|
```
|
|
123
167
|
|
|
124
168
|
Locally:
|
|
@@ -127,24 +171,6 @@ Locally:
|
|
|
127
171
|
DEBUG=1 plugincheck2 -sourceCodeUri https://github.com/grafana/clock-panel/tree/v2.1.2 https://github.com/grafana/clock-panel/releases/download/v2.1.2/grafana-clock-panel-2.1.2.zip
|
|
128
172
|
```
|
|
129
173
|
|
|
130
|
-
## Sourcecode and Git repositories
|
|
131
|
-
|
|
132
|
-
You may pass the sourceCodeUri to the validator in order to perform source code checks (`-sourceCodeUri` option).
|
|
133
|
-
|
|
134
|
-
### Using git URLs
|
|
135
|
-
|
|
136
|
-
The following git services are supported
|
|
137
|
-
|
|
138
|
-
- GitHub
|
|
139
|
-
- GitLab
|
|
140
|
-
- Bitbucket
|
|
141
|
-
|
|
142
|
-
Make sure to include the ref (branch or tag) of the corresponding source code.
|
|
143
|
-
|
|
144
|
-
e.g.: You are validating version `v2.1.2` and your project is in github. Make sure you create a corresponding tag or branch and use the url `https://github.com/grafana/clock-panel/tree/v2.1.2`
|
|
145
|
-
|
|
146
|
-
> Do you use a different service and would like us to support it? Open a [feature request](https://github.com/grafana/clock-panel/issues)
|
|
147
|
-
|
|
148
174
|
## Security tools
|
|
149
175
|
|
|
150
176
|
This validator makes uses of the following open source security tools:
|
|
@@ -159,144 +185,70 @@ If you run the validator locally or via NPX you can benefit from installing thes
|
|
|
159
185
|
|
|
160
186
|
## Analyzers
|
|
161
187
|
|
|
162
|
-
The
|
|
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
|
-
Ensures the
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
### module.js (exists)
|
|
205
|
-
|
|
206
|
-
All plugins require a module.js to be loaded.
|
|
207
|
-
|
|
208
|
-
### Organization exists
|
|
209
|
-
|
|
210
|
-
Verifies the org specified in the plugin id exists.
|
|
211
|
-
|
|
212
|
-
### Plugin Name formatting
|
|
213
|
-
|
|
214
|
-
Validates the plugin id used conforms to our naming convention.
|
|
215
|
-
|
|
216
|
-
### Readme (exists)
|
|
217
|
-
|
|
218
|
-
Ensures a README.md file exists within the zip file.
|
|
219
|
-
|
|
220
|
-
### Restrictive Dependency
|
|
221
|
-
|
|
222
|
-
Specifies a valid range of Grafana that works with this version of the plugin.
|
|
223
|
-
|
|
224
|
-
### Screenshots
|
|
225
|
-
|
|
226
|
-
Screenshots are specified in plugin.json that will be used in the marketplace.
|
|
227
|
-
|
|
228
|
-
### Signature
|
|
229
|
-
|
|
230
|
-
Ensures the plugin has a valid signature.
|
|
231
|
-
|
|
232
|
-
### Source Code (NEW!)
|
|
233
|
-
|
|
234
|
-
The source code URI matches the released code. A comparison is made between the zip file and the source code to ensure what is released matches the repo associated with it.
|
|
235
|
-
|
|
236
|
-
### Unique README.md
|
|
237
|
-
|
|
238
|
-
Ensures the plugin does not re-use the template from the create-plugin tool.
|
|
239
|
-
|
|
240
|
-
### No Tracking Scripts
|
|
241
|
-
|
|
242
|
-
Detects if there are any known tracking scripts, which are not allowed.
|
|
243
|
-
|
|
244
|
-
### Type Suffix (panel/app/datasource)
|
|
245
|
-
|
|
246
|
-
Ensures the plugin has a valid type specified.
|
|
247
|
-
|
|
248
|
-
### Version
|
|
249
|
-
|
|
250
|
-
Ensures the version submitted is newer than the currently published plugin. If this is a new/unpublished plugin, this is skipped.
|
|
251
|
-
|
|
252
|
-
### Vulnerability Scanner
|
|
253
|
-
|
|
254
|
-
This analyzer leverages the OSV Scanner (<https://github.com/google/osv-scanner>) to detect critical vulnerabilities in go modules and yarn lock files.
|
|
255
|
-
|
|
256
|
-
Any critical vulnerability will cause the validation to fail and prevent a plugin from being published.
|
|
257
|
-
|
|
258
|
-
Source code must be provided for this analyzer to execute, and osv-scanner needs to be in your PATH for it to run.
|
|
259
|
-
|
|
260
|
-
#### Running this Analyzer
|
|
261
|
-
|
|
262
|
-
Default Usage:
|
|
263
|
-
|
|
264
|
-
```SHELL
|
|
265
|
-
plugincheck2 -config config/default.yaml -sourceCodeUri https://github.com/briangann/grafana-gauge-panel/archive/refs/tags/v0.0.9.zip https://github.com/briangann/grafana-gauge-panel/releases/download/v0.0.9/briangann-gauge-panel-0.0.9.zip
|
|
266
|
-
```
|
|
267
|
-
|
|
268
|
-
Example default output:
|
|
188
|
+
The tool runs a series of analyzers to ensure submitted plugins are following best practices, and speed up the process of approving a plugin for publishing, detailed in the table below. The Analyzer column includes the name required for altering the behavior of a given check in a [configuration file](#using-a-configuration-file). The Dependencies column specifies whether the analyzer requires the source code for the plugin to be provided with `sourceCodeUri` or for any additional [security scanning tools](#security-tools) to be present.
|
|
189
|
+
|
|
190
|
+
| Analyzer | Description | Dependencies |
|
|
191
|
+
| ------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
|
192
|
+
| Archive Structure / `archive` | Ensures the contents of the zip file have the expected layout. | None |
|
|
193
|
+
| Archive Name / `archivename` | The name of the archive should be correctly formatted. | None |
|
|
194
|
+
| Backend Debug / `backenddebug` | Checks that the standalone debug files for backend plugins are not present. | None |
|
|
195
|
+
| Binary Permissions / `binarypermissions` | For datasources and apps with binaries, this ensures the plugin can run when extracted on a system. | None |
|
|
196
|
+
| Broken Links / `brokenlinks` | Detects if any url does not resolve to a valid location. | None |
|
|
197
|
+
| Code Rules / `coderules` | Checks for forbidden access to environment variables, file system or use of `syscall` module. | [semgrep](https://github.com/returntocorp/semgrep), `sourceCodeUri` |
|
|
198
|
+
| Go Manifest / `gomanifest` | Validates the build manifest. | `sourceCodeUri` |
|
|
199
|
+
| Go Security Checker / `gosec` | Inspects source code for security problems by scanning the Go AST. | [gosec](https://github.com/securego/gosec), `sourceCodeUri` |
|
|
200
|
+
| JS Source Map / `jssourcemap` | Checks for required module.js.map file(s) in archive. | `sourceCodeUri` |
|
|
201
|
+
| Logos / `logos` | Detects whether the plugin includes small and large logos to display in the marketplace. | none |
|
|
202
|
+
| HTML in Readme / `htmlreadme` | Detects if there are any html tags used in the README.md, as they will not render in the marketplace. | None |
|
|
203
|
+
| Developer Jargon / `jargon` | Generally discourage use of code jargon in the documentation. | None |
|
|
204
|
+
| Legacy Platform / `legacyplatform` | Detects use of Angular which is deprecated. | None |
|
|
205
|
+
| License Type / `license` | Checks the declared license is one of: BSD, MIT, Apache 2.0, LGPL3, GPL3, AGPL3. | None |
|
|
206
|
+
| Manifest (Signing) / `manifest` | When a plugin is signed, the zip file will contain a signed MANIFEST.txt file. | None |
|
|
207
|
+
| Metadata Paths / `metadapaths` | Ensures all paths are valid and images referenced exist. | None |
|
|
208
|
+
| Metadata Validity / `metadatavalid` | Ensures metadata is valid and matches plugin schema. | None |
|
|
209
|
+
| module.js (exists) / `modulejs` | All plugins require a module.js to be loaded. | None |
|
|
210
|
+
| Organization (exists) / `org` | Verifies the org specified in the plugin id exists. | None |
|
|
211
|
+
| Plugin Name formatting / `pluginname` | Validates the plugin id used conforms to our naming convention. | None |
|
|
212
|
+
| Published / `published` | Detects whether any version of this plugin exists on the marketplace currently | None |
|
|
213
|
+
| Readme (exists) / `readme` | Ensures a README.md file exists within the zip file. | None |
|
|
214
|
+
| Restrictive Dependency / `restrictivedep` | Specifies a valid range of Grafana versions that work with this version of the plugin. | None |
|
|
215
|
+
| Screenshots / `screenshots` | Screenshots are specified in plugin.json that will be used in the marketplace. | None |
|
|
216
|
+
| Signature / `signature` | Ensures the plugin has a valid signature. | None |
|
|
217
|
+
| !Source Code / `sourcecode` | A comparison is made between the zip file and the source code to ensure what is released matches the repo associated with it. | `sourceCodeUri` |
|
|
218
|
+
| Unique README.md / `templatereadme` | Ensures the plugin does not re-use the template from the create-plugin tool. | None |
|
|
219
|
+
| No Tracking Scripts / `trackingscripts` | Detects if there are any known tracking scripts, which are not allowed. | None |
|
|
220
|
+
| Type Suffix (panel/app/datasource) / `typesuffix` | Ensures the plugin has a valid type specified. | None |
|
|
221
|
+
| Version / `version` | Ensures the version submitted is newer than the currently published plugin. If this is a new/unpublished plugin, this is skipped. | None |
|
|
222
|
+
| Vulnerability Scanner / `osv-scanner` | Detects critical vulnerabilities in go modules and yarn lock files. | [osv-scanner](https://github.com/google/osv-scanner), `sourceCodeUri` |
|
|
223
|
+
| Unsafe SVG / `unsafesvg` | Checks if any svg files are safe based on a whitelist of elements and attributes | none |
|
|
224
|
+
|
|
225
|
+
## Output
|
|
226
|
+
|
|
227
|
+
By default, the tool will output results in plain text as shown below.
|
|
228
|
+
|
|
229
|
+
Default:
|
|
269
230
|
|
|
270
231
|
```TEXT
|
|
271
232
|
warning: README.md: possible broken link: https://www.d3js.org (404 Not Found)
|
|
272
|
-
detail: README.md might contain broken links. Check that all links are valid and publicly
|
|
233
|
+
detail: README.md might contain broken links. Check that all links are valid and publicly accessible.
|
|
273
234
|
warning: README.md contains developer jargon: (yarn)
|
|
274
235
|
detail: Move any developer and contributor documentation to a separate file and link to it from the README.md. For example, CONTRIBUTING.md, DEVELOPMENT.md, etc.
|
|
275
236
|
error: osv-scanner detected a critical severity issue
|
|
276
237
|
detail: SEVERITY: CRITICAL in package immer, vulnerable to CVE-2021-23436
|
|
277
238
|
error: osv-scanner detected a critical severity issue
|
|
278
239
|
detail: SEVERITY: CRITICAL in package json-schema, vulnerable to CVE-2021-3918
|
|
279
|
-
error: osv-scanner detected a critical severity issue
|
|
280
|
-
detail: SEVERITY: CRITICAL in package loader-utils, vulnerable to CVE-2022-37601
|
|
281
|
-
error: osv-scanner detected a critical severity issue
|
|
282
|
-
detail: SEVERITY: CRITICAL in package minimist, vulnerable to CVE-2021-44906
|
|
283
|
-
error: osv-scanner detected a critical severity issue
|
|
284
|
-
detail: SEVERITY: CRITICAL in package shell-quote, vulnerable to CVE-2021-42740
|
|
285
|
-
error: osv-scanner detected a critical severity issue
|
|
286
|
-
detail: SEVERITY: CRITICAL in package simple-git, vulnerable to CVE-2022-25860
|
|
287
|
-
error: osv-scanner detected critical severity issues
|
|
288
|
-
detail: osv-scanner detected 6 unique critical severity issues for lockfile: /var/folders/84/yw3k27_j0d79r_myzgjgx1980000gn/T/validator1049475772/yarn.lock
|
|
289
240
|
error: Plugin version 0.0.9 is invalid.
|
|
290
241
|
detail: The submitted plugin version 0.0.9 is not greater than the latest published version 0.0.9 on grafana.com.
|
|
291
242
|
```
|
|
292
243
|
|
|
293
|
-
|
|
244
|
+
This can be changed to JSON by passing a configuration file which includes:
|
|
294
245
|
|
|
295
|
-
```
|
|
296
|
-
|
|
246
|
+
```yaml
|
|
247
|
+
global:
|
|
248
|
+
jsonOutput: true
|
|
297
249
|
```
|
|
298
250
|
|
|
299
|
-
|
|
251
|
+
Resulting in output similar to:
|
|
300
252
|
|
|
301
253
|
```JSON
|
|
302
254
|
{
|
|
@@ -307,7 +259,7 @@ JSON:
|
|
|
307
259
|
{
|
|
308
260
|
"Severity": "warning",
|
|
309
261
|
"Title": "README.md: possible broken link: https://www.d3js.org (404 Not Found)",
|
|
310
|
-
"Detail": "README.md might contain broken links. Check that all links are valid and publicly
|
|
262
|
+
"Detail": "README.md might contain broken links. Check that all links are valid and publicly accessible.",
|
|
311
263
|
"Name": "broken-link"
|
|
312
264
|
}
|
|
313
265
|
],
|
|
@@ -332,36 +284,6 @@ JSON:
|
|
|
332
284
|
"Detail": "SEVERITY: CRITICAL in package json-schema, vulnerable to CVE-2021-3918",
|
|
333
285
|
"Name": "osvscanner-critical-severity-vulnerabilities-detected"
|
|
334
286
|
},
|
|
335
|
-
{
|
|
336
|
-
"Severity": "error",
|
|
337
|
-
"Title": "osv-scanner detected a critical severity issue",
|
|
338
|
-
"Detail": "SEVERITY: CRITICAL in package loader-utils, vulnerable to CVE-2022-37601",
|
|
339
|
-
"Name": "osvscanner-critical-severity-vulnerabilities-detected"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
"Severity": "error",
|
|
343
|
-
"Title": "osv-scanner detected a critical severity issue",
|
|
344
|
-
"Detail": "SEVERITY: CRITICAL in package minimist, vulnerable to CVE-2021-44906",
|
|
345
|
-
"Name": "osvscanner-critical-severity-vulnerabilities-detected"
|
|
346
|
-
},
|
|
347
|
-
{
|
|
348
|
-
"Severity": "error",
|
|
349
|
-
"Title": "osv-scanner detected a critical severity issue",
|
|
350
|
-
"Detail": "SEVERITY: CRITICAL in package shell-quote, vulnerable to CVE-2021-42740",
|
|
351
|
-
"Name": "osvscanner-critical-severity-vulnerabilities-detected"
|
|
352
|
-
},
|
|
353
|
-
{
|
|
354
|
-
"Severity": "error",
|
|
355
|
-
"Title": "osv-scanner detected a critical severity issue",
|
|
356
|
-
"Detail": "SEVERITY: CRITICAL in package simple-git, vulnerable to CVE-2022-25860",
|
|
357
|
-
"Name": "osvscanner-critical-severity-vulnerabilities-detected"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
"Severity": "error",
|
|
361
|
-
"Title": "osv-scanner detected critical severity issues",
|
|
362
|
-
"Detail": "osv-scanner detected 6 unique critical severity issues for lockfile: /var/folders/84/yw3k27_j0d79r_myzgjgx1980000gn/T/validator1150112313/yarn.lock",
|
|
363
|
-
"Name": "osvscanner-critical-severity-vulnerabilities-detected"
|
|
364
|
-
}
|
|
365
287
|
],
|
|
366
288
|
"version": [
|
|
367
289
|
{
|
|
@@ -375,12 +297,23 @@ JSON:
|
|
|
375
297
|
}
|
|
376
298
|
```
|
|
377
299
|
|
|
378
|
-
|
|
300
|
+
### Severity
|
|
379
301
|
|
|
380
|
-
|
|
381
|
-
|
|
302
|
+
By default the tool will show any warning or error level results from the analyzers. To see all results including successes, you can pass a configuration file which includes:
|
|
303
|
+
|
|
304
|
+
```yaml
|
|
305
|
+
global:
|
|
306
|
+
reportAll: true
|
|
382
307
|
```
|
|
383
308
|
|
|
309
|
+
## Getting Help
|
|
310
|
+
|
|
311
|
+
- :open_book: Check out our plugin [documentation](https://grafana.com/docs/grafana/latest/developers/plugins/).
|
|
312
|
+
- :rocket: See our other [Plugin Tools](https://grafana.github.io/plugin-tools/) to create and update plugins.
|
|
313
|
+
- :handshake: Join the [community forum](https://community.grafana.com/tag/plugins).
|
|
314
|
+
- :speech_balloon: Chat to us in the Grafana Slack [#plugins channel](https://grafana.slack.com/archives/C3HJV5PNE).
|
|
315
|
+
- :memo: [File an issue](https://github.com/grafana/plugin-validator/issues) for any bugs or feature requests.
|
|
316
|
+
|
|
384
317
|
## License
|
|
385
318
|
|
|
386
319
|
Grafana Plugin Validator is distributed under the [Apache 2.0 License](https://github.com/grafana/plugin-validator/blob/master/LICENSE).
|