-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
- safety version: 2.4.0b1
- Python version: 3.11.4
- Operating System: macOS Ventura 13.0
Description
Running safety check raises a vulnerability and fails the check even though the corresponding vulnerability id is added to ignore-vulnerabilities: in the safety-policy.yml file. The checks pass when the vulnerability id is passed explicitly to safety check --ignore=51457
What I Did
Running safety check
Running the safety check as is produces the following result
safety check
Note that the command does seem to be picking up the security policy file:
Safety v2.4.0b1 is scanning for Vulnerabilities...
Scan configuration using a security policy file .safety-policy.yml
Scanning dependencies in your files:
-> requirements.txt
Additionally the .safety-policy.yml file does explicitly list 51457 in the ignore-vulnerabilities section:
Running safety check --ignore
When the vulnerability id is explicitly passed as part of the safety check command, the vulnerability is successfully ignored:
safety check --ignore=51457

yeisonvargasf and felnne
Metadata
Metadata
Assignees
Labels
No labels