Skip to content

Add firstPatchedVersion in github API - #748

Merged
TG1999 merged 4 commits into
aboutcode-org:mainfrom
TG1999:first_patched_version_github
May 24, 2022
Merged

Add firstPatchedVersion in github API#748
TG1999 merged 4 commits into
aboutcode-org:mainfrom
TG1999:first_patched_version_github

Conversation

@TG1999

@TG1999 TG1999 commented May 21, 2022

Copy link
Copy Markdown
Contributor

The GitHub importer failed to parse Composer packages who did not have a slash in their names. We now no longer raise an exception if a Composer package does not have "vendor/name" but only a plain name.

Also we were not getting the first patched version from the GitHub API using GraphQL. This PR is also fixing this.

Reference: #645
Signed-off-by: Tushar Goel tushar.goel.dav@gmail.com

@TG1999
TG1999 force-pushed the first_patched_version_github branch from 10d6977 to d07eabe Compare May 21, 2022 12:49
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999
TG1999 force-pushed the first_patched_version_github branch from d07eabe to 6e974c8 Compare May 21, 2022 13:02
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
Comment thread vulnerabilities/importers/github.py
Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>

@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.

LGTM... Please double check the get item() , may be to ensure you have corner cases testsed.

Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
@TG1999
TG1999 force-pushed the first_patched_version_github branch from 00c053d to 0f3404b Compare May 24, 2022 12:18
@TG1999

TG1999 commented May 24, 2022

Copy link
Copy Markdown
Contributor Author

Thanks! added tests for the corner cases, merging now!

@TG1999
TG1999 merged commit d1686db into aboutcode-org:main May 24, 2022
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