Skip to content

fix: improve redhat-release parsing fallback for RHEL clones#4808

Merged
westonsteimel merged 1 commit intoanchore:mainfrom
westonsteimel:additional-distro-ids-redhat-release-fallback
Apr 22, 2026
Merged

fix: improve redhat-release parsing fallback for RHEL clones#4808
westonsteimel merged 1 commit intoanchore:mainfrom
westonsteimel:additional-distro-ids-redhat-release-fallback

Conversation

@westonsteimel
Copy link
Copy Markdown
Contributor

Description

Ensures the correct distro id for AlmaLinux and Rocky Linux when falling back to parsing distro information from the redhat-release file. Also sets the idlike to rhel for these instances as that is necessary to ensure correct vulnerability data matching.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (please discuss with the team first; Syft is 1.0 software and we won't accept breaking changes without going to 2.0)
  • Documentation (updates the documentation)
  • Chore (improve the developer experience, fix a test flake, etc, without changing the visible behavior of Syft)
  • Performance (make Syft run faster or use less memory, without changing visible behavior much)

Checklist

  • I have added unit tests that cover changed behavior
  • I have tested my code in common scenarios and confirmed there are no regressions
  • I have added comments to my code, particularly in hard-to-understand sections

@westonsteimel westonsteimel force-pushed the additional-distro-ids-redhat-release-fallback branch 4 times, most recently from 69f6a9b to 9e236ed Compare April 22, 2026 10:28
@westonsteimel westonsteimel enabled auto-merge (squash) April 22, 2026 10:40
Ensures the correct distro id for AlmaLinux and Rocky Linux when falling
back to parsing distro information from the redhat-release file.  Also
sets the idlike to `rhel` for these instances as that is necessary to
ensure correct vulnerability data matching.

Signed-off-by: Weston Steimel <author@code.w.steimel.me.uk>
@westonsteimel westonsteimel force-pushed the additional-distro-ids-redhat-release-fallback branch from 9e236ed to eeafcbc Compare April 22, 2026 11:55
@westonsteimel westonsteimel merged commit d179724 into anchore:main Apr 22, 2026
14 checks passed
@westonsteimel westonsteimel deleted the additional-distro-ids-redhat-release-fallback branch April 22, 2026 12:48
@wagoodman wagoodman added the bug Something isn't working label Apr 22, 2026
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