-
Notifications
You must be signed in to change notification settings - Fork 18
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
Set update interval (1-120 days) manually for NVD API #300
Merged
Conversation
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
095a577
to
6fbd315
Compare
5244c98
to
8d67981
Compare
8d67981
to
9714c65
Compare
P-T-I
approved these changes
Jul 3, 2024
oh2fih
added a commit
to oh2fih/cve-search
that referenced
this pull request
Jul 3, 2024
Adds -d (--days) options for passing manual interval to CveXplore. Requires CveXplore with cve-search/CveXplore#300.
oh2fih
added a commit
to oh2fih/cve-search
that referenced
this pull request
Jul 3, 2024
Adds -d (--days) options for passing manual interval to CveXplore. Requires CveXplore with cve-search/CveXplore#300.
oh2fih
added a commit
to oh2fih/cve-search
that referenced
this pull request
Jul 3, 2024
Adds -d (--days) options for passing manual interval to CveXplore. Requires CveXplore with cve-search/CveXplore#300.
oh2fih
added a commit
to oh2fih/cve-search
that referenced
this pull request
Jul 3, 2024
Adds -d (--days) options for passing manual interval to CveXplore. Requires CveXplore with cve-search/CveXplore#300.
This was referenced Jul 3, 2024
P-T-I
pushed a commit
to cve-search/cve-search
that referenced
this pull request
Jul 5, 2024
* Set update interval (1-120 days) manually for NVD API Adds -d (--days) options for passing manual interval to CveXplore. Requires CveXplore with cve-search/CveXplore#300. * Add long option strings & reorder help Makes the code more readable and the short option strings more understandable and memorable. Related options grouped together. * Update documentation for Updating the database Update the documentation to reflect these and some other recent changes. * Set sources manually for NVD API Adds -s (--sources) option for overriding the configured sources. Requires #1112 for EPSS source as it is not currently configured. * Warn about --sources not available in CveXplore
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #299
This takes 1-120 days before current date as an integer since it is easier to use than correctly formatted exact datetime.
The NVD API supports downloading data for maximum 120 days. If the period missing CPEs or CVEs is longer than that, full re-population is required.
Usage
Tested with variants:
cvx.database.update("cpe", 1)
cvx.database.update("cve", 1)
cvx.database.update(None, 1)
cvx.database.update(manual_days=7)
cvx.database.update(["cve", "via4"], 1)
The last one correctly gives: