Package command
Use the package command to create a ZIP archive (project package) of your project. You can either:
Upload this project package to the Controller with the OpenText ScanCentral SAST
startcommandRun an analysis with a locally installed OpenText SAST using the PackageScanner tool
Upload this project package to OpenText Core Application Security for analysis
To avoid a packaging failure for projects with file paths that contain an umlaut, you must first add the com.fortify.sca.CmdlineOptionsFileEncoding property to the <sast_install_dir>/Core/config/fortify‑sca.properties file and specify a value for it that is not ASCII encoding.
| Package command option | Description |
|---|---|
| Specifies the name of the build tool used for the project. The valid values for <name> are If not specified, OpenText ScanCentral SAST automatically detects the build tool based on the project files being scanned. |
| (For use with Maven, Gradle, dotnet, and MSBuild) Specifies custom build parameters for preparing and building the project. The following example build command starts a Gradle build before packaging: -Prelease=true clean customTask build If you use the (Gradle only) If you do not use |
| Specifies the build file if you are not using a default name such as |
| Prevents the printing of stdout from the build execution. |
-skipBuild | Disables the project preparation build step if your projects use Gradle or Maven before packaging. If you use this option, any |
| Includes the test source set (Gradle), the test scope (Maven), or projects in your solution that reference NUnit, xunit, or MSTest (.NET). |
-exclude <file_paths> | Specifies files or directories (with absolute or relative path, or Ant-style path pattern) to exclude from a project package (repeatable). Separate multiple file paths with semicolons (Windows) or colons (Linux). For example, you might use this option to exclude a few test files from the project package. |
-include <file_paths> | Specifies files or directories (with absolute or relative path, or Ant-style path pattern) to include in a project package (repeatable). Only file paths for files within the current working directory are included. Separate multiple file paths with semicolons (Windows) or colons (Linux). For example, you might use this option if you have only a few files you want to include in the project package. You can combine this option with the |
| Specifies the PHP version. If not specified, OpenText ScanCentral SAST automatically detects the installed PHP version. |
| (For use with OpenText Core Application Security only) Specifies to generate and collect additional files for open source software composition analysis. For details, see the OpenText™ Core Application Security User Guide. |
| (For use with OpenText Core Application Security only) Specifies not to check for an updated version of the Debricked CLI. If this option is specified and no Debricked CLI is currently installed, then OpenText ScanCentral SAST generates and collects the additional files for open source software composition analysis without the Debricked CLI. You must also specify the |
| Specifies the Python project requirements file to install and collect dependencies. |
| Specifies the Python virtual environment location. |
| Specifies the Python version to automatically find the installed Python. The valid values are |
| Specifies an OpenText SAST translation option (repeatable) For multiple translation options, use multiple For a list of OpenText SAST options you can use with the |
| Specifies the output file name. The file extension must be |
-dnr, --debricked-no-resolve | Disables the Debricked resolve command that is automatically executed when the OpenText ScanCentral SAST client package command is run with the -oss option. Use this option if you want to prepare the Debricked files manually using the Debricked CLI directly, and to ensure that the OpenText ScanCentral SAST client does not overwrite these prepared files. |
See also