pyupio / safety

Safety checks Python dependencies for known security vulnerabilities and suggests the proper remediations for vulnerabilities detected.
https://safetycli.com/product/safety-cli
MIT License
1.66k stars 141 forks source link

Bare output includes extra line in non-screen output with no vulnerabilities #423

Closed chris-bradley closed 1 year ago

chris-bradley commented 1 year ago

Description

When running safety with --output bare in an environment with no vulnerabilities in a non-screen environment (eg. within a cron task or piping to a file), a single line is output: +==============================================================================+ When used as a cron task, this causes an unnecessary email to be sent.

What I Did

Within a cron environment:

>>> safety check --output bare
+==============================================================================+

Due to the un-needed output, an email is sent.

yeisonvargasf commented 1 year ago

@chris-bradley, as a workaround, you should be able to redirect stderr. Let me know if that helps.