-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfb1557
commit 0d43c33
Showing
5 changed files
with
39 additions
and
35 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 |
---|---|---|
@@ -1,48 +1,49 @@ | ||
+==============================================================================+ | ||
|
||
/$$$$$$ /$$ | ||
/$$__ $$ | $$ | ||
/$$$$$$$ /$$$$$$ | $$ \__//$$$$$$ /$$$$$$ /$$ /$$ | ||
/$$_____/ |____ $$| $$$$ /$$__ $$|_ $$_/ | $$ | $$ | ||
| $$$$$$ /$$$$$$$| $$_/ | $$$$$$$$ | $$ | $$ | $$ | ||
\____ $$ /$$__ $$| $$ | $$_____/ | $$ /$$| $$ | $$ | ||
/$$$$$$$/| $$$$$$$| $$ | $$$$$$$ | $$$$/| $$$$$$$ | ||
|_______/ \_______/|__/ \_______/ \___/ \____ $$ | ||
/$$ | $$ | ||
| $$$$$$/ | ||
by pyup.io \______/ | ||
/$$$$$$ /$$ | ||
/$$__ $$ | $$ | ||
/$$$$$$$ /$$$$$$ | $$ \__//$$$$$$ /$$$$$$ /$$ /$$ | ||
/$$_____/ |____ $$| $$$$ /$$__ $$|_ $$_/ | $$ | $$ | ||
| $$$$$$ /$$$$$$$| $$_/ | $$$$$$$$ | $$ | $$ | $$ | ||
\____ $$ /$$__ $$| $$ | $$_____/ | $$ /$$| $$ | $$ | ||
/$$$$$$$/| $$$$$$$| $$ | $$$$$$$ | $$$$/| $$$$$$$ | ||
|_______/ \_______/|__/ \_______/ \___/ \____ $$ | ||
/$$ | $$ | ||
| $$$$$$/ | ||
by pyup.io \______/ | ||
|
||
+==============================================================================+ | ||
|
||
[1mREPORT[0m | ||
REPORT | ||
|
||
[31m[22m Safety is using PyUp's free open-source vulnerability database. This | ||
data is 30 days old and limited. [0m | ||
[31m For real-time enhanced vulnerability data, fix recommendations, severity | ||
Safety is using PyUp's free open-source vulnerability database. This | ||
data is 30 days old and limited. | ||
For real-time enhanced vulnerability data, fix recommendations, severity | ||
reporting, cybersecurity support, team and project policy management and more | ||
sign up at https://pyup.io or email sales@pyup.io[0m | ||
sign up at https://pyup.io or email sales@pyup.io | ||
|
||
Safety [1mv2.3.5[0m is scanning for [1mVulnerabilities[0m[1m...[0m | ||
[1m Scanning dependencies[0m in your [1menvironment:[0m | ||
Safety v2.3.5 is scanning for Vulnerabilities... | ||
Scanning dependencies in your environment: | ||
|
||
-> /home/maanib/.cache/pypoetry/virtualenvs/pycvcqv-1nCALKhD- | ||
py3.9/lib/python3.9/site-packages | ||
|
||
Using [1mnon-commercial database[0m | ||
[1m Found and scanned 84 packages[0m | ||
Timestamp [1m2023-09-22 16:56:02[0m | ||
[1m 0[0m[1m vulnerabilities found[0m | ||
[1m 0[0m[1m vulnerabilities ignored[0m | ||
Using non-commercial database | ||
Found and scanned 84 packages | ||
Timestamp 2023-09-23 23:39:48 | ||
0 vulnerabilities found | ||
0 vulnerabilities ignored | ||
|
||
+==============================================================================+ | ||
|
||
[32m[1mNo known security vulnerabilities found.[0m | ||
No known security vulnerabilities found. | ||
|
||
+==============================================================================+ | ||
|
||
[31m[22m Safety is using PyUp's free open-source vulnerability database. This | ||
data is 30 days old and limited. [0m | ||
[31m For real-time enhanced vulnerability data, fix recommendations, severity | ||
Safety is using PyUp's free open-source vulnerability database. This | ||
data is 30 days old and limited. | ||
For real-time enhanced vulnerability data, fix recommendations, severity | ||
reporting, cybersecurity support, team and project policy management and more | ||
sign up at https://pyup.io or email sales@pyup.io[0m | ||
sign up at https://pyup.io or email sales@pyup.io | ||
|
||
+==============================================================================+[0m | ||
+==============================================================================+ |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
#!/bin/bash | ||
find . -name 'safety.txt' -delete | ||
find . -name 'vulnerabilities.svg' -delete | ||
poetry run safety check > .logs/safety.txt | ||
export vulnerabilities=$(grep 'vulnerabilities' .logs/safety.txt | cut -d\ -f2) | ||
vulnerabilities=${vulnerabilities/"No"/"0"} | ||
echo "vulnerabilities:" $vulnerabilities | ||
poetry run safety check --output text > .logs/safety.txt | ||
poetry run safety check --output json > .logs/safety.json | ||
vulnerabilities_found=$(jq -r '.report_meta.vulnerabilities_found' .logs/safety.json) | ||
export VULNERABILITIES_FOUND=$vulnerabilities_found | ||
echo "vulnerabilities:" $VULNERABILITIES_FOUND | ||
rm -rf assets/images/vulnerabilities.svg | ||
poetry run python3 -m pybadges --left-text="vulnerabilities" --right-text=${vulnerabilities} --left-color="#40aef9" --right-color="#0c2739" --logo=assets/images/safety.png --embed-logo >>assets/images/vulnerabilities.svg | ||
poetry run python3 -m pybadges --left-text="vulnerabilities" --right-text=${VULNERABILITIES_FOUND} --left-color="#40aef9" --right-color="#0c2739" --logo=assets/images/safety.png --embed-logo >>assets/images/vulnerabilities.svg |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.