Skip to content

Improve GitHub importer - #291

Merged
sbs2001 merged 4 commits into
aboutcode-org:mainfrom
sbs2001:improve_github_importer
Dec 18, 2020
Merged

Improve GitHub importer#291
sbs2001 merged 4 commits into
aboutcode-org:mainfrom
sbs2001:improve_github_importer

Conversation

@sbs2001

@sbs2001 sbs2001 commented Nov 30, 2020

Copy link
Copy Markdown
Collaborator
  • The github importer used to abandon a vulnerability if
    the affected package had invalid name. This PR changes that
    behaviour to instead skip the package and import the vulnerability

  • This commit also enables github importer to import vulnerabilities for python
    and rubygems packages. This is crucial since we can't use safetydb

@pombredanne pombredanne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, yet having a single class at that package manager level that track the version API and the package URL type in one place

@sbs2001

sbs2001 commented Dec 17, 2020

Copy link
Copy Markdown
Collaborator Author

@pombredanne correct me if I am wrong. The way I understood your suggestion is

  1. The github ecosystem -> package type conversion code is dupilicated. Once for the actual package type inference and secondly for setting the version api.
  2. To fix this move the package type info in the corresponding version api classes.

@sbs2001
sbs2001 requested a review from pombredanne December 17, 2020 06:20
@pombredanne

Copy link
Copy Markdown
Member

@pombredanne correct me if I am wrong. The way I understood your suggestion is
1. The github ecosystem -> package type conversion code is dupilicated. Once for the actual package type inference and secondly for setting the version api.
2. To fix this move the package type info in the corresponding version api classes.

Somehow my comment was truncated!
Yes you got it right

* The github importer used to abandon a vulnerability if
  the affected package had invalid name. This commit changes that
  behaviour to instead  skip the package and import the vulnerability

* This commit also enables github api to import vulnerabilities for python
  and rubygems packages.

Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
Signed-off-by: Shivam Sandbhor <shivam.sandbhor@gmail.com>
@sbs2001
sbs2001 force-pushed the improve_github_importer branch from 748103e to 5a9e2b6 Compare December 18, 2020 05:33
@sbs2001
sbs2001 merged commit d2dc98d into aboutcode-org:main Dec 18, 2020
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.

2 participants