Skip to content

GitHubTagsAPI vs GitTagsAPI #493

@Hritik14

Description

@Hritik14

Currently we are scraping Github for tags for VersionAPI
https://github.com/nexB/vulnerablecode/blob/e9943b014f5f07b970988f910b2aaebcec0a6e58/vulnerabilities/package_managers.py#L414-L466

Imo, we could have a GitTagsAPI looking at the GitDataSource's git filesystem and find out all the contained tags. This would avoid GitHub scraping without a proper API, plus it would work for all git repositories, regardless of being on GitHub.

Also, if we happen to move with GitHubTagsAPI, should we focus more on the releases part than the tags part ? Eg: https://api.github.com/repos/nexB/vulnerablecode/releases. This might not be favorable in all cases, I'd like some suggestions here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions