fix: replace Debian package name with its source name #1422
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current v2 container scanning doesn't report any Debian-related vulnerabilities. The reason is that the extractor takes the package name and package version to match against OSV records. But OSV records store records with the source name. Debian packages may have a different source name than their package name (also source version). For example:
![image](https://private-user-images.githubusercontent.com/39108850/392250307-6c5cf9c9-7381-4f29-a887-5035b40c0efd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNzE2OTMsIm5iZiI6MTczOTI3MTM5MywicGF0aCI6Ii8zOTEwODg1MC8zOTIyNTAzMDctNmM1Y2Y5YzktNzM4MS00ZjI5LWE4ODctNTAzNWI0MGMwZWZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDEwNTYzM1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRjODViYmExMDc5MTEwZTZmMGQ5NjU1ZDNkMTRlZDJlYzgwNDBkNThlNTc5Y2NlYzFjOTNkMGIxNDc5YjMyYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.tl1A-jdqRqYWWLwE2P2oX3ysqua5ar-i5wZYhbGZK8c)
The new change will convert the given package information to its corresponding source information for matching, if the source information is specified.