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

Add --apply-remediations flag to the safety check command. #448

Closed yeisonvargasf closed 1 year ago

yeisonvargasf commented 1 year ago

This PR Introduces the --apply-remediations flag for the check command. It works only for requirements files passed to the check command and requires a PyUp API KEY.

What does this feature?

When users use the --apply-remediations flag, Safety will look for the referenced requirement files and apply the proper remediation for each dependency.

How to use:

safety check --key [API_KEY] -r reqs_1.txt -r reqs_2.txt --apply-remediations

Note: this feature supports recursive requirements.