Skip to content
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

Add: New CLI for downloading CPE match strings #47

Merged
merged 7 commits into from
Dec 5, 2024
Merged

Conversation

timopollmeier
Copy link
Member

What

Two new CLI tools are added to download CPE match strings from the NVD
API to either a consolidated JSON file or a PostgreSQL database.

These are also based on new generic and modular classes so parts like
the API downloader or the general structure of the JSON and database
writers can be easily reused.

Why

The new CLI tools are meant to be used for creating a consolidated
CPE match strings file for the feed.

References

GEA-764
requires greenbone/pontos#1067

Checklist

  • Tests

Two new CLI tools are added to download CPE match strings from the NVD
API to either a consolidated JSON file or a PostgreSQL database.

These are also based on new generic and modular classes so parts like
the API downloader or the general structure of the JSON and database
writers can be easily reused.
Two new CLI tools are added to download CPE match strings from the NVD
API to either a consolidated JSON file or a PostgreSQL database.

These are also based on new generic and modular classes so parts like
the API downloader or the general structure of the JSON and database
writers can be easily reused.
Added docstrings for the new generic and CPE match string
CLI modules.
Non-public attributes are now prefixed with an underscore
and some misleading names have been changed.
@timopollmeier timopollmeier requested a review from a team as a code owner November 19, 2024 09:37
@greenbonebot greenbonebot enabled auto-merge (rebase) November 19, 2024 09:37
Copy link

Conventional Commits Report

Type Number
Added 2

🚀 Conventional commits found.

Fixed several errors found by the type hint linter mypy and
added underscore prefix for the callback functions
_loop_step_end and _loop_end.
@greenbonebot greenbonebot merged commit 5086958 into main Dec 5, 2024
11 checks passed
@greenbonebot greenbonebot deleted the add-cpe-matches branch December 5, 2024 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants