disable selinux relabeling when mounting sourcedir to shellcheck

This commit is contained in:
Benjamin Elder 2025-06-11 15:33:16 -07:00
parent 568f7300c9
commit b86b4632b3

View file

@ -114,7 +114,7 @@ if ${HAVE_SHELLCHECK}; then
else
echo "Using shellcheck ${SHELLCHECK_VERSION} docker image."
"${DOCKER}" run \
--rm -v "${KUBE_ROOT}:${KUBE_ROOT}" -w "${KUBE_ROOT}" \
--rm -v "${KUBE_ROOT}:${KUBE_ROOT}" -w "${KUBE_ROOT}" --security-opt label=disable \
"${SHELLCHECK_IMAGE}" \
"${SHELLCHECK_OPTIONS[@]}" "${scripts_to_check[@]}" >&2 || res=$?
fi