-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split safety runs into all & install
* Split safety runs into one for checking all requirements (against minimum-constraints.txt) which may fail and one for checking the install requirements (against requirements.txt) which must succeed. * Added the option 'ignore-unpinned-requirements: False' to the policy files because with safety 3.0, the default is to ignore unpinned requirements. * Because the new option s not tolerated by safety 2.x, made safety 3.0 the new minimum version, and also running it only on Python >=3.7 because that is its minimum supported Python version. Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
570e91b
commit e4f3c92
Showing
7 changed files
with
77 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Safety policy file | ||
# For documentation, see https://docs.pyup.io/docs/safety-20-policy-file | ||
|
||
# Configuration for the 'safety check' command | ||
security: | ||
|
||
# Ignore certain severities. | ||
# A number between 0 and 10, with the following significant values: | ||
# - 9: ignore all vulnerabilities except CRITICAL severity | ||
# - 7: ignore all vulnerabilities except CRITICAL & HIGH severity | ||
# - 4: ignore all vulnerabilities except CRITICAL, HIGH & MEDIUM severity | ||
ignore-cvss-severity-below: 0 | ||
|
||
# Ignore unknown severities. | ||
# Should be set to False. | ||
ignore-cvss-unknown-severity: False | ||
|
||
# Ignore unpinned requirements. | ||
# Should be set to False. | ||
ignore-unpinned-requirements: False | ||
|
||
# List of specific vulnerabilities to ignore. | ||
# {id}: # vulnerability ID | ||
# reason: {text} # optional: Reason for ignoring it. Will be reported in the Safety reports | ||
# expires: {date} # optional: Date when this ignore will expire | ||
ignore-vulnerabilities: | ||
39611: | ||
reason: Fixed PyYAML versions 5.4 to 6.0.0 do not work with Cython 3, and the full_load method or FullLoader is not used | ||
61601: | ||
reason: Fixed urllib3 version 2.0.5 is excluded by requests on Python 3.6 | ||
61893: | ||
reason: Fixed urllib3 version 2.0.7 is excluded by requests on Python 3.6 | ||
64227: | ||
reason: Fixed Jinja2 version 3.1.3 requires Python>=3.7 and is used there | ||
|
||
# Continue with exit code 0 when vulnerabilities are found. | ||
continue-on-vulnerability-error: False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters