Skip to content

Commit 20f5470

Browse files
committed
fix security issue
1 parent 47955e2 commit 20f5470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gardenlinux/features/reproducibility/comparator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def _unpack(file: PathLike[str]) -> tempfile.TemporaryDirectory[str]:
6868
"""
6969

7070
output_dir = tempfile.TemporaryDirectory()
71-
file = Path(file)
71+
file = Path(file).resolve()
7272
if file.name.endswith(".oci"):
7373
with tempfile.TemporaryDirectory() as extracted:
7474
# Extract .oci file

0 commit comments

Comments
 (0)