Skip to content

Use PURL in VersionAPIs #1145

Description

@keshav-space

It's time we start using PURL instead of ambiguous pkg package_name in VersionAPIs

https://github.com/nexB/vulnerablecode/blob/d0aba2097c800fe137661fbe174b1b4a32c4907b/vulnerabilities/package_managers.py#L108-L113

>>> PypiVersionAP.fetch("django")
>>> ComposerVersionAPI().fetch("typo3/cms-core")
>>> MavenVersionAPI().fetch("org.apache:kafka"))
>>> GoproxyVersionAPI().fetch("github.com/FerretDB/FerretDB")
>>> NugetVersionAPI().fetch("Exfat.Ntfs")
>>> GitHubTagsAPI().fetch("nexB/scancode-toolkit")

This would provide a standardized and unambiguous way of invoking fetch() method across different VersionAPIs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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