chore: migrate syft to use anchore fork of archiver without replace #3516
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR Addresses a security fix for syft/grype.
Syft and grype were never vulnerable to GHSA-rhh4-rh7c-7r5v given the steps taken to fork, fix, and use a replace directive for the upstream repository. This PR moves syft to officially use the fork without a replace directive. This will help reduce false positives in upstream security tools (including grype).
Given the the upstream repository has been archived without a fix we've moved to using our fork officially without the replace directive until another solution can be found.
Some fixtures in the Golang cataloger also used this repository and needed to be updated which is why the diff is marginally larger than expected for this change. Rather than change by hand I ran the go toolchain commands against these packages causing other updates which are reflected in the tests.
Type of change