mirror of
https://github.com/msoedov/agentic_security.git
synced 2026-11-25 19:43:29 +01:00
`CLI.ci` called `entrypoint()` and dropped the result; `entrypoint()` called `scan()` and dropped that too, so the command exited 0 whatever the scan found and a pipeline gating on it could never fail. `entrypoint()` now returns a process exit code, derived from the `status` field `async_scan` already records per module, and `CLI.ci` raises `SystemExit` with it. That mirrors `CLI.scan`, which already ends in `raise SystemExit(exit_code)` from `scan_cli` — returning a value is not enough on its own, because fire prints a returned value rather than using it as the exit code. Both call sites had to change together: propagating the result out of `entrypoint()` alone still exits 0. Fixes #367