-
Notifications
You must be signed in to change notification settings - Fork 216
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
Huawei Pipeline Added with Tests #1770
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Rishi Garg <[email protected]>
Signed-off-by: Rishi Garg <[email protected]>
Hi @TG1999 , Can you please review this pipeline importer. |
@Rishi-source I am also a contributor for vulnerablecode. You recently pushed code for huawei pipelines. I was working on some other advisories , and wanted to create tests for it , how should I create the JSON files for tests ? The output of my advisory data looks like this. Your help will be really appreciated
|
Hi @kunalsz, In order to convert the advisory data to json you have to firstly convert your AdvisoryData object to a dictionary
then import json and convert the dictionary to JSON formatted string.
you can add indent = 2 it enhances the readability of json format. |
The following pull request is fixes the issue fixes #1750 and adds a pipeline importer with tests.
Signed-off-by: Rishi Garg [email protected]