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: improve mariadb binary classifer to detect older versions #3339

Merged
merged 1 commit into from
Oct 16, 2024

Conversation

westonsteimel
Copy link
Contributor

Description

With older versions of mariadb the binary name was mysql, so this adjusts the binary classifier to additionally search for the expected version pattern in mysql binaries.

@westonsteimel westonsteimel added the bug Something isn't working label Oct 16, 2024
@westonsteimel
Copy link
Contributor Author

westonsteimel commented Oct 16, 2024

An example image that illustrates this is

syft --select-catalogers binary registry:mariadb:10.1 | grep mariadb

@westonsteimel westonsteimel requested a review from a team October 16, 2024 14:21
@westonsteimel westonsteimel enabled auto-merge (squash) October 16, 2024 16:03
With older versions of mariadb the binary name was `mysql`, so this
adjusts the binary classifier to additionally search for the expected
version pattern in `mysql` binaries.

Signed-off-by: Weston Steimel <[email protected]>
@westonsteimel westonsteimel force-pushed the improve-mariadb-binary-identification branch from 8cd9537 to fefe33c Compare October 16, 2024 16:18
Copy link
Contributor

@kzantow kzantow left a comment

Choose a reason for hiding this comment

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

LGTM

@westonsteimel westonsteimel merged commit d7194bb into main Oct 16, 2024
12 checks passed
@westonsteimel westonsteimel deleted the improve-mariadb-binary-identification branch October 16, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants