chore: migrate syft to use mholt/archives instead of anchore fork#22
chore: migrate syft to use mholt/archives instead of anchore fork#22l-qing merged 2 commits intoalauda-v1.28.0from
Conversation
|
cherry-pick from: anchore#4029 |
✅ No New Issues - Previous Review Still Valid19 files reviewed | Confidence: 90% | Recommendation: Approve with monitoring This PR successfully migrates from Key Improvements Confirmed
Security Tests AddedExtensive security test coverage for:
Dependencies Updated
Architecture ChangesAll archive operations now use the visitor pattern: archives.Identify(ctx, path, nil)
format.Extract(ctx, reader, visitor)Status: No New Issues FoundThe changes since the previous review are consistent with the original migration plan. No new security concerns, bugs, or architectural issues have been introduced. The comprehensive test suite provides confidence in the changes. RecommendationApprove with monitoring - The migration maintains backward compatibility while significantly improving security posture. |
7479081 to
048070c
Compare
…chore#4029) --------- Signed-off-by: Kudryavcev Nikolay <kydry.nikolau@gmail.com> Signed-off-by: Christopher Phillips <spiffcs@users.noreply.github.com> Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
00edce6 to
64fd8a2
Compare
This commit addresses a potential vulnerability where the license scanner was not properly initialized before use in the Java archive parser, which could lead to nil pointer dereference. Additionally, updates test fixtures and assertions to reflect: - Updated package versions in Rocky Linux (curl-minimal, httpd) - Refactored deduplication tests to index by package name for better resilience to version changes - Added comprehensive test documentation
64fd8a2 to
3fb3f35
Compare
✅ No Issues Found19 files reviewed | Confidence: 95% | Recommendation: Approve This PR successfully migrates from Key Improvements Confirmed
Security Tests AddedExtensive security test coverage in
Architecture ChangesAll archive operations now use the modern visitor pattern: // Old API
archiver.ByExtension(path)
archiver.Walk(archivePath, visitor)
// New API
archives.Identify(ctx, path, nil)
format.Extract(ctx, reader, visitor)Critical Security Features
Status: No Issues FoundThe migration maintains backward compatibility while significantly improving the security posture. All existing functionality is preserved with enhanced protection against archive-based attacks. RecommendationApprove - This is a high-quality migration that improves both security and code maintainability. |
| ) | ||
|
|
||
| func TestPackageDeduplication(t *testing.T) { | ||
| // this test verifies that package deduplication works correctly across layers. |
|
|
||
| FROM stage1 AS stage2 | ||
| RUN dnf update -y curl-minimal-7.76.1-31.el9_6.1 | ||
| RUN dnf update -y curl-minimal-7.76.1-34.el9 |
Description
Please include a summary of the changes along with any relevant motivation and context,
or link to an issue where this is explained.
Type of change
Checklist: