Describe your question in as much detail as possible:
I recently set up SAST form my pipeline. All goes well except for the eslint stage where it errors out with:
[INFO] [ESLint] [2022-05-18T12:01:01Z] ▶ Running analyzer Oops! Something went wrong! :( ESLint: 7.32.0 RangeError: Invalid string length at JSON.stringify (<anonymous>) at module.exports (/home/node/node_modules/eslint/lib/cli-engine/formatters/json.js:12:17) at Object.format (/home/node/node_modules/eslint/lib/eslint/eslint.js:648:24) at printResults (/home/node/node_modules/eslint/lib/cli.js:181:30) at async Object.execute (/home/node/node_modules/eslint/lib/cli.js:316:13) at async main (/home/node/node_modules/eslint/bin/eslint.js:132:24) [ERRO] [ESLint] [2022-05-18T12:03:01Z] ▶ An error occurred while running eslint: exit status 2 exit status 2
What are you seeing, and how does that differ from what you expect to see?
eslint analyzer fails instead of succeeding.
Add the CI configuration from
.gitlab-ci.ymland other configuration if relevant (e.g. docker-compose.yml)
I used the default configuration set up by the GitLab scripts.
What troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?
I tried to find more on the issue online, but in most cases, the fixes require updates to the source code.
Thanks for taking the time to be thorough in your request, it really helps!