socket ci

Get feedback on state of the code health in an automated environment

socket ci

An alias / shortcut for socket scan create. The resulting scan ID is then fetched with socket scan report and an exit code will reflect the health status of the report.

Useful to eg. quick and easily automate Socket checks in your Continuous Integration runs.

Exit Code Behavior

Code 0

The CLI will exit with a status code of 0 under the following conditions:

  • The command executes successfully without encountering unexpected errors. The report passes your organization security policy and license policy.

Non-Zero Exit Code

The CLI will return a non-zero exit code in the following scenarios:

  • The generated report returns "healthy": false
  • An unexpected error occurs during execution.