Skip to content

fix(linux): add logic to parse the upstream package name #1286

@FernandoRojo

Description

@FernandoRojo

Why?
Many Linux distributions (debian/alpine/mariner) publish CVE data against source package names only, so this is required for users to CVE check against the output of component-detection.

Note: Syft doesn't always provide the source package name (it doesn't appear to provide this for ubuntu packages when the source and binary package names are the same).

The package name does not always line up 100% with the upstream or source name. For example some Linux distributions suffix the major version to differentiate i.e. python2 and python3. These should both be mapped back to python.

Initial code updates were introduced in these PRs: #88 #126

But they need to be revisited after becoming stale and having a large number of conflicts.

We will reintroduce a PR to resolve this issue once there is enough priority.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions