fix(ci): fingerprint private server registry as root

This commit is contained in:
2026-08-26 03:55:18 +02:00
parent d638473c12
commit a0620ffffa
+10 -1
View File
@@ -131,7 +131,16 @@ task13_capture_failed_image_evidence() {
}
task13_registry_filesystem_fingerprint() {
python3 - "$1" <<'PY'
local root="$1"
local -a python=(python3)
if [[ "${TASK13_PROFILE:-local}" == server && "$root" == "${TASK13_SERVER_REGISTRY:-}" ]]; then
[[ -n "${TASK13_TMP:-}" \
&& "$root" == "$TASK13_TMP/Server Registry" \
&& ! -L "$root" && -d "$root" ]] \
|| task13_fail "refusing to fingerprint an unexpected server registry path"
python=(sudo -n -- python3)
fi
"${python[@]}" - "$root" <<'PY'
import hashlib
import os
import stat