diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73f6fce..0da6cdb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: steps: - uses: actions/checkout@v3 - run: pip install --user ruff - - run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="S101,UP031" --target-version=py37 . + - run: ruff --format=github --select="E,F,PLC,PLE,UP,W,YTT" --ignore="PLC1901,S101,UP031" --target-version=py37 . Tests: strategy: fail-fast: false diff --git a/update-gyp.py b/update-gyp.py index 19524bd..70e2d10 100755 --- a/update-gyp.py +++ b/update-gyp.py @@ -49,7 +49,7 @@ with tempfile.TemporaryDirectory() as tmp_dir: if not is_within_directory(path, member_path): raise Exception("Attempted Path Traversal in Tar File") - tar.extractall(path, members, numeric_owner) + tar.extractall(path, members, numeric_owner=numeric_owner) safe_extract(tar_ref, unzip_target)