-
Notifications
You must be signed in to change notification settings - Fork 2.9k
fix: overwrite OS packages PURLs after overwrite OS #9797
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
base: main
Are you sure you want to change the base?
fix: overwrite OS packages PURLs after overwrite OS #9797
Conversation
- override OS - override `none` OS
|
Is there any estimate when this fix could be merged? |
|
Hello @joda-work Please be patient — we’ll get back to this PR as soon as we have time. Regards, Dmitriy |
|
This PR is stale because it has been labeled with inactivity. |
|
Is there anything I can do to help getting this merged? |
|
Hello @joda-work |
Description
This PR fixes an issue where OS package PURLs (Package URLs) were not being updated when the --distro flag is used to override the detected OS. Previously, when Trivy detected one OS version but the user specified a different one via
the distro flag, the package PURLs would still contain the originally detected OS information, creating inconsistency between the overridden OS and the package metadata.
Examples:
before:
before:
Related issues
--distroflag is used. #9796Checklist