Skip to content

Commit cadf4f1

Browse files
Syeda Shagufta Naazfmoessbauer
authored andcommitted
fix(repack): enforce mode=a=rX,u+w to avoid permission discrepancies
Archives created on different systems had varying file permissions, leading to different checksums after repacking. Setting mode=a=rX,u+w to normalize permissions to ensure reproducibility. Fixes: 6c54581 (chore(repack): create tar with stable order and owner) Signed-off-by: Syeda Shagufta Naaz <[email protected]>
1 parent a600f60 commit cadf4f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/debsbom/repack/merger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ def merge(
185185
"--force-local",
186186
"--format=gnu",
187187
"--sort=name",
188+
"--mode=a=rX,u+w",
188189
"--owner=0",
189190
"--group=0",
190191
"--numeric-owner",

0 commit comments

Comments
 (0)