@soos-io/soos-sast
Advanced tools
Comparing version 0.1.16 to 0.1.18
@@ -108,5 +108,5 @@ #!/usr/bin/env node | ||
}); | ||
const exitCode = (0, utilities_1.getAnalysisExitCode)(scanStatus, this.args.integrationName, this.args.onFailure); | ||
api_client_1.soosLogger.debug(`Exiting with code ${exitCode}`); | ||
(0, process_1.exit)(exitCode); | ||
const exitCodeWithMessage = (0, utilities_1.getAnalysisExitCodeWithMessage)(scanStatus, this.args.integrationName, this.args.onFailure); | ||
api_client_1.soosLogger.always(`${exitCodeWithMessage.message} - exit ${exitCodeWithMessage.exitCode}`); | ||
(0, process_1.exit)(exitCodeWithMessage.exitCode); | ||
} | ||
@@ -126,2 +126,3 @@ catch (error) { | ||
api_client_1.soosLogger.error(error); | ||
api_client_1.soosLogger.always(`${error} - exit 1`); | ||
(0, process_1.exit)(1); | ||
@@ -145,2 +146,3 @@ } | ||
api_client_1.soosLogger.error(`Error on createAndRun: ${error}`); | ||
api_client_1.soosLogger.always(`Error on createAndRun: ${error} - exit 1`); | ||
(0, process_1.exit)(1); | ||
@@ -147,0 +149,0 @@ } |
{ | ||
"name": "@soos-io/soos-sast", | ||
"version": "0.1.16", | ||
"version": "0.1.18", | ||
"description": "SOOS Static Application Security Testing (SAST) scanning support.", | ||
@@ -30,3 +30,3 @@ "main": "bin/index.js", | ||
"dependencies": { | ||
"@soos-io/api-client": "0.2.23", | ||
"@soos-io/api-client": "0.2.26", | ||
"argparse": "^2.0.1", | ||
@@ -33,0 +33,0 @@ "glob": "^10.3.10", |
@@ -31,3 +31,3 @@ # [SOOS SAST](https://soos.io/products/sast) | ||
| ------------------------ | ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | | ||
| `--apiKey` | | SOOS API Key - get yours from [SOOS Integration](https://app.soos.io/integrate/sast). Uses `SOOS_API_KEY` env value if present. | | ||
| `--apiKey` | | SOOS API Key - get yours from [SOOS Integration](https://app.soos.io/integrate/sast). Uses `SOOS_API_KEY` env value if present. | | ||
| `--branchName` | | The name of the branch from the SCM System. | | ||
@@ -40,8 +40,8 @@ | `--branchURI` | | The URI to the branch from the SCM System. | | ||
| `--directoriesToExclude` | `**/node_modules/**, "**/bin/**", "**/obj/**", "**/lib/**` | Listing of directories or patterns to exclude from the search for manifest files. eg: **bin/start/**, **/start/** | | ||
| `--filesToExclude` | None | Listing of files or patterns to exclude from the search for manifest files. eg: **/req**.txt/, **/requirements.txt | | ||
| `--logLevel` | `INFO` | Minimum level to show logs: PASS, IGNORE, INFO, WARN or FAIL. | | ||
| `--onFailure` | `continue_on_failure` | Action to perform when the scan fails. Options: fail_the_build, continue_on_failure. | | ||
| `--filesToExclude` | | Listing of files or patterns to exclude from the search for manifest files. eg: **/req**.txt/, **/requirements.txt | | ||
| `--logLevel` | | Minimum level to show logs: DEBUG, INFO, WARN, FAIL, ERROR. | | ||
| `--onFailure` | `continue_on_failure` | Action to perform when the scan fails. Options: fail_the_build, continue_on_failure. | | ||
| `--operatingEnvironment` | | Set Operating environment for information purposes only. | | ||
| `--projectName` | | Project Name - this is what will be displayed in the SOOS app. | | ||
| `--sourceCodePath` | `process.cwd()` | Root path to begin recursive search for Sarif files. | | ||
| `--verbose` | `false` | Enable verbose logging. | | ||
| `--projectName` | | Project Name - this is what will be displayed in the SOOS app. | | ||
| `--sourceCodePath` | `process.cwd()` | Root path to begin recursive search for Sarif files. | | ||
| `--verbose` | `false` | Enable verbose logging. | |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14289
163
+ Added@soos-io/api-client@0.2.26(transitive)
- Removed@soos-io/api-client@0.2.23(transitive)
Updated@soos-io/api-client@0.2.26