RetireJS / retire.js

scanner detecting the use of JavaScript libraries with known vulnerabilities. Can also generate an SBOM of the libraries it finds.

Home Page:https://retirejs.github.io/retire.js/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

--ignore does not ignore given application subdirectory

michaelfranzl opened this issue · comments

Retire.js version: (retire --version): 4.3.2

node version: (node --version): 14.17.0

Description: --ignore does not ignore given application subdirectory

Expected behaviour: --ignore ignores given application subdirectory

I have an application with a subdirectory named vendor. I would like to ignore this entire directory.

Steps to reproduce:

npm i retire
mkdir test
cp vulnerable.js test # copy any vulnerable javascript file into the test directory
./node_modules/.bin/retire --ignore test

The vulnerable file is still reported and the command exits with non-zero code.

Thanks for fixing it. When will this be released?

Thank you. Fixed in 4.3.3

(which is already released) :)