You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running npm install on this generates this output:
added 48 packages from 51 contributors and audited 117 packages in 2.265s
found 51 vulnerabilities (10 low, 13 moderate, 28 high)
run `npm audit fix` to fix them, or `npm audit` for details
Pushing a plugin with these dependencies to GitHub will send you a message:
Known high severity security vulnerability detected in lodash < 4.17.13 defined in package-lock.json.
--
package-lock.json update suggested: lodash ~> 4.17.13.
The "bug" is that the plugin scaffold includes known high-severity security dependencies.
I'm not hugely familiar with the dependencies and why they might be at these versions but:
Grunt's stable version is 1.0.3
grunt-wp-i18n is at 1.0.3
grunt-wp-readme-to-markdown is at 2.0.1
Describe how other contributors can replicate this bug
run wp scaffold plugin
run npm install
(optional) run npm audit
Describe what you would expect as the correct outcome
Scaffolded plugin should have dependencies with known insecurities
Let us know what environment you are running this on
I'm not sure grunt is actually needed here anymore. The grunt-wp-i18n dependency can be replaced with the new wp i18n WP-CLI command, and I'm sure we can easily whip up a new command for turning Readme text files into Markdown...
So I'd suggest looking into getting rid of Grunt altogether for a base plugin. If you happen to need a better build system, then it should probably be assembled on-the-fly out of what Core is currently doing for Gutenberg. This way, it would keep current with Core.
Bug Report
Describe the current, buggy behavior
Running
wp scaffold plugin
generates apackage.json
which contains:Running
npm install
on this generates this output:Pushing a plugin with these dependencies to GitHub will send you a message:
The "bug" is that the plugin scaffold includes known high-severity security dependencies.
I'm not hugely familiar with the dependencies and why they might be at these versions but:
Describe how other contributors can replicate this bug
wp scaffold plugin
npm install
npm audit
Describe what you would expect as the correct outcome
Scaffolded plugin should have dependencies with known insecurities
Let us know what environment you are running this on
Provide a possible solution
Someone will need to analyse the dependencies and update them to appropriate versions
The text was updated successfully, but these errors were encountered: