Skip to content
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

Normalize PURLs from other tools #176

Open
pombredanne opened this issue Dec 18, 2024 · 0 comments
Open

Normalize PURLs from other tools #176

pombredanne opened this issue Dec 18, 2024 · 0 comments

Comments

@pombredanne
Copy link
Member

See https://github.com/supplyshield/supplyshield/blob/7bc6e77e3ea830931fd6eac041a6100b10ca3d19/libinv/blast_radius/cdx.py#L38

def minify_package_url(package):
    return package.split("/")[-1].replace("?type=jar", "")

This is a maven PURL derived from a tool TBD that adds an extraneous "?type=jar" which is the default for maven and not needed.

@Hritik14 FYI

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

No branches or pull requests

1 participant