This project uses eslint-plugin-security to scan and report security issues.
Usage: scan [options] <path ...>
Options:
-v, --version output the version number
-o, --out <filename> output filename, defaults to gl-sast-report.json
-h, --help output usage information
npx gitlab-sast-nodejs path1 path2
npm i -g gitlab-sast-nodejs
Using Docker you can simply mount two volumes in the container, e.g.:
docker run --rm -it -v $(PWD)/src:/src/code -v $(PWD):/output sast
This will scan a subfolder src/
and write the result to the root of your project