CISA Data Importer via GitHub Repo- Added - #1614
Closed
Rishi-source wants to merge 11 commits into
Closed
Conversation
Signed-off-by: Rishi Garg <rishigarg2503@gmail.com>
Member
|
@keshav-space should we now instead use the new importer pipeline approach? |
Member
@pombredanne yes, we have a decent number of pipelines here https://github.com/aboutcode-org/vulnerablecode/tree/main/vulnerabilities/pipelines, and there is a brief instruction on how to write a pipeline here #1589 (comment). I still need to add this to our tutorials in Read the Docs. |
Author
|
@keshav-space Can you please tell me that what is the difference between the importer pipeline approach and the normal importing? |
Signed-off-by: Rishi Garg <rishigarg2503@gmail.com>
Signed-off-by: Rishi Garg <rishigarg2503@gmail.com>
Signed-off-by: Rishi Garg <rishigarg2503@gmail.com>
Rishi-source
marked this pull request as draft
October 15, 2024 16:15
This file contains hidden or 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
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.
Add CISA GOV Vulnrichment Importer
This pull request adds a new importer for the CISA GOV Vulnrichment dataset. The importer fetches vulnerability data from the CISAGOV/vulnrichment GitHub repository and imports it into our database.
Related Issue
Closes #1475
Changes
VulnrichImporterclass invulnerabilities/importers/cisagov.pyHow to Use
To use the new importer, run the following management command:
python manage.py import vulnerabilities.importers.vulnrichment.VulnrichImporterThis command will fetch the latest data from the CISAGOV/vulnrichment repository and import it into the database.
Features
Testing
Additional Notes
GITHUB_API_BASE,REPO_OWNER,REPO_NAME, andBRANCHconstants in the importer can be adjusted if the source repository changes in the future.Please review and let me know if any changes or additional information is needed.