Exit codes

The following table describes the possible OpenText SAST exit codes.

Exit codeDescription
0Success
1Generic failure
2

Invalid input files

(this might indicate that an attempt was made to translate a file that has an extension that OpenText SAST does not support)

3Process timed out
4Analysis completed with numbered warning messages written to the console and/or to the log file
5Analysis completed with numbered error messages written to the console and/or to the log file
6Scan phase was unable to generate issue results
7Unable to detect a valid license or the LIM license expired at run time

By default, OpenText SAST only returns exit codes 0, 1, 2, 3, or 7.

You can extend the default exit code options by setting the com.fortify.sca.ExitCodeLevel property in the <sast_install_dir>/Core/Config/fortify-sca.properties file.

The valid values are:

  • nothing—Returns any of the default exit codes (0, 1, 2, 3, or 7).
  • warnings—Returns exit codes 4 and 5 in addition to the default exit codes.
  • errors—Returns exit code 5 in addition to the default exit codes.
  • no_output_file—Returns exit code 6 in addition to the default exit codes.