ci: check only file modes after the AppImage repack
Secret Scan / scan (push) Successful in 15s
Build App (Preview) / compute-version (pull_request) Successful in 20s
Secret Scan / scan (pull_request) Successful in 7s
Build App (Preview) / create-release (pull_request) Successful in 5s
Build STT Container / build-stt-container (pull_request) Successful in 6m39s
Build App (Preview) / build-macos (pull_request) Successful in 3m14s
Build App (Preview) / build-windows (pull_request) Successful in 6m44s
Build App (Preview) / build-linux (pull_request) Successful in 6m58s
Build App (Preview) / prune-previews (pull_request) Successful in 27s
Build Container / build-container (pull_request) Successful in 16m27s
Build App (Preview) / test (pull_request) Failing after 43m26s
Secret Scan / scan (push) Successful in 15s
Build App (Preview) / compute-version (pull_request) Successful in 20s
Secret Scan / scan (pull_request) Successful in 7s
Build App (Preview) / create-release (pull_request) Successful in 5s
Build STT Container / build-stt-container (pull_request) Successful in 6m39s
Build App (Preview) / build-macos (pull_request) Successful in 3m14s
Build App (Preview) / build-windows (pull_request) Successful in 6m44s
Build App (Preview) / build-linux (pull_request) Successful in 6m58s
Build App (Preview) / prune-previews (pull_request) Successful in 27s
Build Container / build-container (pull_request) Successful in 16m27s
Build App (Preview) / test (pull_request) Failing after 43m26s
--appimage-extract creates every directory 0700 regardless of the modes stored in the image (verified by packing a 0755 AppDir and extracting it under umask 022), so the post-repack guard failed on a correct image. Check files, which extract with their stored modes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cda3a74b8b
commit
2ece558fd5
1 file changed
+7
-5
@@ -281,11 +281,13 @@ if [ "$demoted" = true ]; then
|
||||
fi
|
||||
[ -x "$out/usr/bin/triple-c" ] || fail "no executable usr/bin/triple-c."
|
||||
|
||||
# Every entry readable by all, every directory and program executable by all —
|
||||
# what the `chmod -R a+rX` before the repack promised. A 0700 root here is an
|
||||
# image other users of the machine cannot start.
|
||||
unreadable="$(find "$out" ! -type l \( ! -perm -a+r -o \( -type d ! -perm -a+x \) \
|
||||
-o \( -type f -perm /111 ! -perm -a+x \) \) -print -quit)"
|
||||
# Every file readable by all, every program executable by all — what the
|
||||
# `chmod -R a+rX` before the repack promised (AppRun.wrapped used to ship 0770).
|
||||
# Files only: the AppImage runtime's --appimage-extract creates every
|
||||
# *directory* 0700 whatever the image stores (verified by packing a 0755
|
||||
# AppDir and extracting it under umask 022), so directory modes cannot be
|
||||
# checked from an extraction. appimagetool's own check covers them pre-pack.
|
||||
unreadable="$(find "$out" -type f \( ! -perm -a+r -o \( -perm /111 ! -perm -a+x \) \) -print -quit)"
|
||||
[ -z "$unreadable" ] || fail "${unreadable#"$out"/} is not readable/executable by all users."
|
||||
|
||||
# An empty Categories or missing metadata ships an image a manager cannot file
|
||||
|
||||
Reference in new issue
Block a user