Skip to content

Commit

Permalink
Forbid encrypted zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
dirkmueller committed May 16, 2024
1 parent 2bb7996 commit a88b834
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 20-files-present-and-referenced
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,15 @@ for i in `cat $TMPDIR/sources` ; do
done
mv $TMPDIR/sources.t $TMPDIR/sources

# validate for encrypted files
for f in $(<$TMPDIR/sources); do
case "$f" in
*.zip)
unzip -q -P '' -t "$f" || { echo "zip file $f seems encrypted. This makes source review impossible and hence is forbidden."; exit 1; };
;;
esac
done

# XML validate files starting with _..
if [ -x $(type -p xmllint) ]; then
for i in "$DIR_TO_CHECK/_service"; do
Expand Down

0 comments on commit a88b834

Please sign in to comment.