You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

Changelog

What's new at Socket?

Back to changelog

July 01, 2025

Python CLI: Fixed Incorrect Exit Code for Warn-Only Diff Reports

The Socket Python CLI no longer exits with an error code when a diff report contains only warn-level alerts.

Before:
Even if there were no error-level alerts, the CLI returned exit code 5, which could incorrectly signal failure in scripts or CI pipelines.

Now:
The CLI returns exit code 0 for warn-only diff reports, as expected.

This fix ensures that non-critical warnings don’t break your workflows.