sl run
The run
command runs the given application with Protect's Microagent attached.
Usage
To run: sl run [command options]
Command Options
Some command-related information can be stored as environment variables for easy reuse in future analyses. If so, this is indicated.
Option | Environment Variable | Description |
---|---|---|
--analysis-timeout <timeout> | SHIFTLEFT_ANALYSIS_TIMEOUT=<timeout> | Specify the timeout (e.g. 15m ) to be used for analysis. Default: 15 minutes (15m0s ) |
--analyze <file.jar> | SHIFTLEFT_ANALYZE=<file.jar> | Instruct ShiftLeft to analyze the code before securing the application with Protect |
--app <name> , -a <name> | SHIFTLEFT_APP=<name> | Indicate the application name; only accepted in conjunction with the --analyze flag |
--cpg | SHIFTLEFT_CPG=true | Instruct ShiftLeft to build the CPG locally and analyze the CPG (instead of the application code); only accepted in conjunction with the --analyze flag |
--force | Force new analysis to prevent the use of a cached result | |
--install-directory <path> | Indicate that the installation directory of your software package | |
--java | SHIFTLEFT_LANG_JAVA=true | Analyze an application written in Java or Scala |
--policy <ID> | The policy to be used by ShiftLeft; if you don't set this value, the ShiftLeft uses the default Policy | |
--shiftleft-json-file <path> | SHIFTLEFT_JSON_FILE=<path> | Specify the path to the ShiftLeft configuration file. Defaults to <working-directory>/shiftleft.json |
--version-id <version> | Version of the submitted application; if you don't provide a value, ShiftLeft derives the version from the input file(s) |