rules_shell has undeclared dependencies, which it relies upon and that are outside the sandbox.
_DEFAULT_SHELL_PATHS = {
"windows": "c:/msys64/usr/bin/bash.exe",
"linux": "/bin/bash",
"osx": "/bin/bash",
"freebsd": "/usr/local/bin/bash",
"openbsd": "/usr/local/bin/bash",
}
rules_shell has undeclared dependencies, which it relies upon and that are outside the sandbox.
https://github.com/bazelbuild/rules_shell/blob/main/shell/private/repositories/sh_config.bzl#L18
This is similar to this issue, which we have almost resolved
bazel-contrib/rules_go#4343