diff --git a/nextstrain/cli/runner/conda.py b/nextstrain/cli/runner/conda.py index a850dfd0..e938c7c2 100644 --- a/nextstrain/cli/runner/conda.py +++ b/nextstrain/cli/runner/conda.py @@ -217,7 +217,7 @@ def setup_micromamba(dry_run: bool = False, force: bool = False) -> bool: assert content_type == "application/x-tar", \ f"unknown content-type for micromamba dist: {content_type}" - with tarfile.open(fileobj = response.raw, mode = "r|*") as tar: + with tarfile.open(fileobj = response.raw, mode = "r|*") as tar: # type: ignore # Ignore archive members starting with "/" and or including ".." parts, # as these can be used (maliciously or accidentally) to overwrite # unintended files (e.g. files outside of MICROMAMBA_ROOT).