-
Notifications
You must be signed in to change notification settings - Fork 532
nvd data mismatch results in critical error -- maybe switch to something less? #306
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
Comments
For beginners who might want to work on this: The offending line is here: rather than using the critical message function, you'll want to change it to warning. If you want to change it to a summary message, it'll probably go around the same spot. |
I would like to work on this. |
yay! Go ahead, and ask here if you have any questions while preparing your code! |
How to generate the test case for this situation. |
@milindgupta We probably don't need a test case for this one, but if you look at how we test |
I should just change critical to a warning at https://github.com/intel/cve-bin-tool/blob/master/cve_bin_tool/cvedb.py#L111, but here we might even have to add some conditions too, like if the current date is more then last updated. |
Bump. I'm still looking for at least the one-line fix where we go from logger.critical() to logger.warning() on this line: https://github.com/intel/cve-bin-tool/blob/master/cve_bin_tool/cvedb.py#L111 |
When the sha doesn't match for any of the nvd data files, cve_bin_tool throws a critical error. The more I think about this, th emore I think this might be excessive, as it's going to happen every single time the data updates (possibly multiple times a day) for multiple files. This could probably be a warning at the very least.
Currently every time the data is updated it could print around 40 messages of "out of date" and "updated" -- maybe this could be replaced by a summary message that says something like "the following years have new data: ..." and "the following years have been updated: ..."
The text was updated successfully, but these errors were encountered: