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
Both pull requests are failing on CI, I think the problem is Windows specific. I am not able to view logs from Azure Pipelines, the AppVeyor log is complaining about incorrect CI setup.
Build started
git clone -q --branch=renovate/npm-minimist-vulnerability https://github.com/commitizen/cz-cli.git C:\projects\cz-cli
git checkout -qf a162b40f6e7373887ac577187306bf8b5b477cc4
The build phase is set to "MSBuild" mode (default), but no Visual Studio project or
solution files were found in the root directory. If you are not building Visual Studio
project switch build mode to "Script" and provide your custom build command.
Ping @jimthedev, what's the status of this project? I see the last commit was merged in August 2019. I am an open-source maintainer myself, so I totally understand if you don't have time or energy to maintain this project going forward. Do you have any recommendations for us, commitizen users, how to deal with the current security warning and/or help this project to become actively maintained again?
Note that I'm coming here because I have this very security warning with cz-conventional-changelog so once fixed it would be good to get cz-conventional-changelog use the new minimist version as well.
warning: commitizen > cz-conventional-changelog > @commitlint/load > babel-runtime > core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
Apply below changes fixes ShellJS internal error and some errors.
These changes passed all tests with Windows 10 for me.
hope this helps.
diff --git a/src/commitizen/adapter.js b/src/commitizen/adapter.js
index 6878946..6765618 100644
--- a/src/commitizen/adapter.js+++ b/src/commitizen/adapter.js@@ -78,7 +78,7 @@ function generateNpmInstallAdapterCommand (stringMappings, adapterNpmName) {
function generateYarnAddAdapterCommand (stringMappings, adapterNpmName) {
// Start with an initial yarn add command
- let installAdapterCommand = `yarn add ${adapterNpmName}`;+ let installAdapterCommand = `npx yarn add ${adapterNpmName}`;
// Append the necessary arguments to it based on user preferences
for (let value of stringMappings.values()) {
Since the CI is current red for master anyway, I made a commit that fixes the vulnerable packages, by bumping minimist and running npm audit fix.
There are a number of dev-dependencies that would still need to be bumped though, which probably includes dropping support for older versions of Node.js...
Activity
duniul commentedon Mar 18, 2020
There's a PR up for this, it just needs to be merged by someone: #713
joepaquette commentedon Mar 18, 2020
NOTE: PR #713 will not resolve this vulnerability. The minimum version for minimist is 1.2.3. The PR only bumps the version to 1.2.2.
duniul commentedon Mar 20, 2020
My bad, misread the version number! I wonder why Dependabot doesn't update it to the latest version?
bajtos commentedon Apr 6, 2020
AFAICT, there are two bot-contributed PRs open to resolve this issue:
Both pull requests are failing on CI, I think the problem is Windows specific. I am not able to view logs from Azure Pipelines, the AppVeyor log is complaining about incorrect CI setup.
https://ci.appveyor.com/project/jimthedev/cz-cli/builds/31474679
bajtos commentedon Apr 6, 2020
Ping @jimthedev, what's the status of this project? I see the last commit was merged in August 2019. I am an open-source maintainer myself, so I totally understand if you don't have time or energy to maintain this project going forward. Do you have any recommendations for us, commitizen users, how to deal with the current security warning and/or help this project to become actively maintained again?
cjolif commentedon Apr 7, 2020
Note that I'm coming here because I have this very security warning with
cz-conventional-changelog
so once fixed it would be good to getcz-conventional-changelog
use the new minimist version as well.jimthedev commentedon Apr 8, 2020
@bajtos https://dev.azure.com/commitizen/cbf3c633-a6bc-43ce-ae50-fe434d244768/_apis/build/builds/851/logs/50 is the current error I am working through. For some reason windows fails with a ShellJS internal error, something about permissions on package.json. Not sure why it is failing on windows.
tjapro commentedon Apr 13, 2020
The pakage
core-js
also needs to be updated ...hdmr14 commentedon Apr 30, 2020
Apply below changes fixes ShellJS internal error and some errors.
These changes passed all tests with Windows 10 for me.
hope this helps.
sh.cd() is changing process.cwd(). due to this behavior, process grab directory access until test exit even if we want remove it.
LinusU commentedon Apr 30, 2020
A PR to remove ShellJS would be very welcome 😬
Since the CI is current red for
master
anyway, I made a commit that fixes the vulnerable packages, by bumping minimist and runningnpm audit fix
.There are a number of dev-dependencies that would still need to be bumped though, which probably includes dropping support for older versions of Node.js...
LinusU commentedon Apr 30, 2020
Fixed in commitizen@4.0.5, sorry for the delay everyone!
4 remaining items