Local Scan Runner completes successfully, but Scan shows FAILED in Contrast UI

  • Updated

Issue

Running a SAST scan with the Local Scan Runner appears to complete and may report vulnerabilities locally, but the Scan Project in the Contrast UI shows a failed Scan. 

Cause

The encoding on the machine running Scan locally is likely not supported and causing a failure with the uploaded results.

Resolution

Add the following environment variable to the Local Scan Runner environment:
JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF-8

After adding this environment variable, it may also be necessary to create a new Scan Project in the Contrast UI.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request