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

Failing to scan archived files #2853

Open
RuchitaKshirsagarTR opened this issue May 15, 2024 · 1 comment · Fixed by #2854
Open

Failing to scan archived files #2853

RuchitaKshirsagarTR opened this issue May 15, 2024 · 1 comment · Fixed by #2854
Assignees
Labels

Comments

@RuchitaKshirsagarTR
Copy link
Contributor

RuchitaKshirsagarTR commented May 15, 2024

TruffleHog Version

3.76.0

Expected Behavior

It should unarchive the files and scan.

Actual Behavior

Scan is failing when trying to unarchive the .zip, .gz, .tat.gz etc files.

Steps to Reproduce

  1. Try to scan a repo with lot of different types of archive file.
  2. Error:

2024-05-15T13:12:35-04:00 error trufflehog error unarchiving chunk. {"source_manager_worker_id": "W7Rg1", "unit": "/var/folders/7h/bpqg847x6xx5zt42f9sbj1040000gq/T/trufflehog-30084-2945869955", "unit_kind": "dir", "commit": "5736d30", "path": "aspnetcore-runtime-8.0.1-linux-x64.tar.gz", "timeout": 30, "error": "error extracting archive with format: .tar: archive/tar: invalid tar header"}

Additional Context

This is an intermittent issue but happens very often.

@ahrav ahrav self-assigned this May 16, 2024
@ahrav ahrav linked a pull request May 16, 2024 that will close this issue
2 tasks
@ahrav ahrav reopened this May 16, 2024
@ahrav
Copy link
Collaborator

ahrav commented May 16, 2024

Re-opening until the fix is confirmed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants