node-safe icon indicating copy to clipboard operation
node-safe copied to clipboard

[Feature idea] [Package managers]: Detect `publish` and allow access to `~/.npmrc` automatically

Open berstend opened this issue 4 years ago • 0 comments

Currently we block all access ~/.npmrc for security reasons (explained in the main readme).

It could be convenient to automatically allow access to that file when publishing related package manager commands are invoked.

To make that as secure as possible we could parse the package.json and make sure there's no lifecycle events present (prepublish, etc) that could run scripts that might steal the npm credentials.

berstend avatar Nov 23 '21 12:11 berstend