-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated safety to use 'safety scan'
Signed-off-by: Andreas Maier <[email protected]>
- Loading branch information
1 parent
6262ed5
commit 8c9ff42
Showing
5 changed files
with
121 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,62 @@ | ||
# Safety policy file for packages needed for development. | ||
# For documentation, see https://docs.pyup.io/docs/safety-20-policy-file | ||
# For documentation, see https://docs.safetycli.com/safety-docs/administration/safety-policy-files | ||
|
||
# Note: This policy file is used against the versions in minimum-constraints-develop.txt. | ||
|
||
# Configuration for the 'safety check' command | ||
security: | ||
version: '3.0' | ||
|
||
# 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 | ||
scanning-settings: | ||
max-depth: 6 | ||
exclude: [] | ||
include-files: [] | ||
system: | ||
targets: [] | ||
|
||
# Ignore unknown severities. | ||
# Should be set to False. | ||
ignore-cvss-unknown-severity: False | ||
report: | ||
dependency-vulnerabilities: | ||
enabled: true | ||
auto-ignore-in-report: | ||
python: | ||
environment-results: true | ||
unpinned-requirements: true | ||
cvss-severity: [] | ||
vulnerabilities: | ||
# List of specific vulnerabilities to ignore. | ||
# {id}: # vulnerability ID | ||
# reason: {text} # optional: Reason for ignoring it | ||
# expires: {date} # optional: Date when this ignore will expire | ||
70612: | ||
reason: Disputed issue in jinja2 version 3.1.3 - No known fix | ||
|
||
# Ignore unpinned requirements. | ||
# Should be set to False. | ||
ignore-unpinned-requirements: False | ||
fail-scan-with-exit-code: | ||
dependency-vulnerabilities: | ||
enabled: true | ||
fail-on-any-of: | ||
cvss-severity: | ||
- high | ||
- medium | ||
- critical | ||
exploitability: | ||
- high | ||
- medium | ||
- critical | ||
|
||
# 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: | ||
70612: | ||
reason: Disputed issue in jinja2 version 3.1.3 - No known fix | ||
security-updates: | ||
dependency-vulnerabilities: | ||
auto-security-updates-limit: | ||
- patch | ||
|
||
# Continue with exit code 0 when vulnerabilities are found. | ||
continue-on-vulnerability-error: False | ||
installation: | ||
default-action: allow | ||
audit-logging: | ||
enabled: true | ||
allow: | ||
packages: [] | ||
vulnerabilities: {} | ||
deny: | ||
packages: {} | ||
vulnerabilities: | ||
warning-on-any-of: | ||
cvss-severity: [] | ||
block-on-any-of: | ||
cvss-severity: [] |
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 |
---|---|---|
@@ -1,31 +1,60 @@ | ||
# Safety policy file for packages needed for installation. | ||
# For documentation, see https://docs.pyup.io/docs/safety-20-policy-file | ||
# For documentation, see https://docs.safetycli.com/safety-docs/administration/safety-policy-files | ||
|
||
# Note: This policy file is used against the versions in minimum-constraints-install.txt. | ||
|
||
# Configuration for the 'safety check' command | ||
security: | ||
version: '3.0' | ||
|
||
# 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 | ||
scanning-settings: | ||
max-depth: 6 | ||
exclude: [] | ||
include-files: [] | ||
system: | ||
targets: [] | ||
|
||
# Ignore unknown severities. | ||
# Should be set to False. | ||
ignore-cvss-unknown-severity: False | ||
report: | ||
dependency-vulnerabilities: | ||
enabled: true | ||
auto-ignore-in-report: | ||
python: | ||
environment-results: true | ||
unpinned-requirements: true | ||
cvss-severity: [] | ||
vulnerabilities: | ||
# List of specific vulnerabilities to ignore. | ||
# {id}: # vulnerability ID | ||
# reason: {text} # optional: Reason for ignoring it | ||
# expires: {date} # optional: Date when this ignore will expire | ||
|
||
# Ignore unpinned requirements. | ||
# Should be set to False. | ||
ignore-unpinned-requirements: False | ||
fail-scan-with-exit-code: | ||
dependency-vulnerabilities: | ||
enabled: true | ||
fail-on-any-of: | ||
cvss-severity: | ||
- high | ||
- medium | ||
- critical | ||
exploitability: | ||
- high | ||
- medium | ||
- critical | ||
|
||
# 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: | ||
security-updates: | ||
dependency-vulnerabilities: | ||
auto-security-updates-limit: | ||
- patch | ||
|
||
# Continue with exit code 0 when vulnerabilities are found. | ||
continue-on-vulnerability-error: False | ||
installation: | ||
default-action: allow | ||
audit-logging: | ||
enabled: true | ||
allow: | ||
packages: [] | ||
vulnerabilities: {} | ||
deny: | ||
packages: {} | ||
vulnerabilities: | ||
warning-on-any-of: | ||
cvss-severity: [] | ||
block-on-any-of: | ||
cvss-severity: [] |
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