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

Add support for zstd RPM files #732

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

egibs
Copy link
Member

@egibs egibs commented Dec 19, 2024

I noticed that we weren't extracting zstd RPM files:

unable to process /tmp/malcontent-3727400076/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/arr-pm-0.0.12/spec/fixtures/pagure-mirror-5.13.2-5.fc35.noarch.rpm: extract to temp: failed to extract /tmp/malcontent-3727400076/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/arr-pm-0.0.12/spec/fixtures/pagure-mirror-5.13.2-5.fc35.noarch.rpm: unsupported compression format: zstd

This PR adds another case statement to allow for these files to be extracted:

🔎 Scanning "~/Downloads/gitlab-rails/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/arr-pm-0.0.12/spec/fixtures/pagure-mirror-5.13.2-5.fc35.noarch.rpm"
Matches for ~/Downloads/gitlab-rails/srv/gitlab/vendor/bundle/ruby/3.2.0/gems/arr-pm-0.0.12/spec/fixtures/pagure-mirror-5.13.2-5.fc35.noarch.rpm ∴ /usr/lib/systemd/system/pagure_mirror.service [LOW] (4 rules):
etc_path [LOW] (1 string):
- /etc/pagure/pagure.cfg
https_url [LOW] (1 string):
- https://pagure.io/pagure
ref_systemd [LOW] (1 string):
- systemd
usr_bin_path [LOW] (1 string):
- /usr/bin/celery-3

@egibs egibs requested a review from tstromberg December 19, 2024 15:47
@egibs egibs merged commit fcd1105 into chainguard-dev:main Dec 19, 2024
12 checks passed
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.

2 participants