New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying database last update date. #311
base: main
Are you sure you want to change the base?
Conversation
Codecov Report
@@ Coverage Diff @@
## master #311 +/- ##
==========================================
- Coverage 71.59% 71.48% -0.12%
==========================================
Files 8 8
Lines 514 526 +12
==========================================
+ Hits 368 376 +8
- Misses 146 150 +4
Continue to review full report at Codecov.
|
@@ -68,14 +68,15 @@ def check(key, db, json, full_report, bare, stdin, files, cache, ignore, output, | |||
] | |||
proxy_dictionary = get_proxy_dict(proxyprotocol, proxyhost, proxyport) | |||
try: | |||
vulns = safety.check(packages=packages, key=key, db_mirror=db, cached=cache, ignore_ids=ignore, proxy=proxy_dictionary) | |||
vulns, db_last_update = safety.check(packages=packages, key=key, db_mirror=db, cached=cache, ignore_ids=ignore, proxy=proxy_dictionary) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am afraid that this is changing our internal code API for Safety. People might be relying on this call and will get unexpected tuple as result instead of a single value. Is there a way to handle this without a breaking change?
This will allow safety users to check safety DB last update date.
The date is obtained from the field
timestamp
on the safety db metadata ($meta
).