fix(ci): fingerprint private server registry as root
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user