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
I'm trying to use this with yarn but I get the following error:
$ yarn audit --json|npm-audit-reporter-teamcity
{"type":"warning","data":"Resolution field \"[email protected]\" is incompatible with requested version \"minimatch@^2.0.1\""}
{"type":"warning","data":"Resolution field \"[email protected]\" is incompatible with requested version \"minimatch@^2.0.1\""}
{"type":"warning","data":"Resolution field \"[email protected]\" is incompatible with requested version \"lodash@~1.0.1\""}
{"type":"warning","data":"Resolution field \"[email protected]\" is incompatible with requested version \"minimatch@~0.2.11\""}
{"type":"warning","data":"Resolution field \"[email protected]\" is incompatible with requested version \"minimatch@~0.2.11\""}
undefined:2
{"type":"auditAdvisory","data":{"resolution":{"id":1500,"path":"stylelint>meow>yargs-parser","dev":false,"optional":false,"bundled":false},"advisory":{"findings":[{"version":"10.1.0","paths":["stylelint>meow>yargs-parser","ts-jest>yargs-parser"]}],"id":1500,"created":"2020-03-26T19:21:50.174Z","updated":"2020-05-01T01:05:15.020Z","deleted":null,"title":"Prototype Pollution","found_by":{"link":"","name":"Snyk Security Team","email":""},"reported_by":{"link":"","name":"Snyk Security Team","email":""},"module_name":"yargs-parser","cves":[],"vulnerable_versions":"<13.1.2 || >=14.0.0 <15.0.1 || >=16.0.0 <18.1.2","patched_versions":">=13.1.2 <14.0.0 || >=15.0.1 <16.0.0 || >=18.1.2","overview":"Affected versions of `yargs-parser` are vulnerable to prototype pollution. Arguments are not properly sanitized, allowing an attacker to modify the prototype of `Object`, causing the addition or modification of an existing property that will exist on all objects. \nParsing the argument `--foo.__proto__.bar baz'
SyntaxError: Unexpected token { in JSON at position 1278
at JSON.parse (<anonymous>)
at Socket.<anonymous> (C:\git\vouchercloud-idl\IDL.Web.Vc\node_modules\npm-audit-reporter-teamcity\dist\index.js:12:19)
at Socket.emit (events.js:203:15)
at endReadableNT (_stream_readable.js:1145:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
Do you have any suggestions?
Any help much appreciated!
Thanks
The text was updated successfully, but these errors were encountered:
Hi @jhukdev! Sorry for the long silence, it looks like I've messed up my GitHub notification settings somehow...
yarn audit processing is broken atm, I'm checking if there is any simple solution (its output it quite different, actually).
The only workaround I could suggest now is to generate package-lock.json file to enable usage of npm audit command and use it instead, removing package-lock.json afterward, e.g. npm i --package-lock-only && npm audit --json|npm-audit-reporter-teamcity && rm package-lock.json
First of all, thanks for this!
I'm trying to use this with
yarn
but I get the following error:$ yarn audit --json|npm-audit-reporter-teamcity
Do you have any suggestions?
Any help much appreciated!
Thanks
The text was updated successfully, but these errors were encountered: