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

fix: update location handling #4769

Merged
merged 1 commit into from
Feb 5, 2025
Merged

fix: update location handling #4769

merged 1 commit into from
Feb 5, 2025

Conversation

ffontaine
Copy link
Contributor

@ffontaine ffontaine commented Feb 5, 2025

Do not use find_product_location to set the location field in version_scanner.py as otherwise cve-bin-tool will try to find the location of the product on the host system (which is obviously wrong).

Instead, set the location to be the file_path

Fix #4396

@ffontaine ffontaine force-pushed the fix-location branch 2 times, most recently from e890fe5 to 0ef3fd3 Compare February 5, 2025 16:19
Do not use find_product_location to set the location field in
version_scanner.py as otherwise cve-bin-tool will try to find the
location of the product on the host system (which is obviously wrong).

Instead, set the location to be the file_path

Fix intel#4396

Signed-off-by: Fabrice Fontaine <[email protected]>
Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

THANK YOU. We should probably remove the find_product_location function entirely from util.py but that'll take some fixes in sbom_manager too, so I'm going to merge this as is and open a separate issue to address the SBOM side of things.

@terriko terriko merged commit 919714f into intel:main Feb 5, 2025
24 checks passed
@ffontaine
Copy link
Contributor Author

Indeed, by the way, there is already an issue for SBOM: #4676

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

Successfully merging this pull request may close these issues.

fix: Location in SBOM field shows local filepath instead of location in binary
2 participants