For reference, the exclusion is still needed to avoid the error from #27739 (comment). Diff to reproduce the error:
0diff --git a/ci/test/02_run_container.sh b/ci/test/02_run_container.sh
1index 4181e68..168ab51 100755
2--- a/ci/test/02_run_container.sh
3+++ b/ci/test/02_run_container.sh
4@@ -12,7 +12,7 @@ set -o errexit -o pipefail -o xtrace
5 if [ -z "$DANGER_RUN_CI_ON_HOST" ]; then
6 # Export all env vars to avoid missing some.
7 # Though, exclude those with newlines to avoid parsing problems.
8- python3 -c 'import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value and "HOME" != key and "PATH" != key and "USER" != key]' | tee "/tmp/env-$USER-$CONTAINER_NAME"
9+ python3 -c 'import os; [print(f"{key}={value}") for key, value in os.environ.items() if "\n" not in value]' | tee "/tmp/env-$USER-$CONTAINER_NAME"
10
11 # Env vars during the build can not be changed. For example, a modified
12 # $MAKEJOBS is ignored in the build process. Use --cpuset-cpus as an
CMD: env -i HOME="$HOME" PATH="$PATH" USER="$USER" MAKEJOBS="-j$( nproc )" FILE_ENV="./ci/test/00_setup_env_native_tidy.sh" ./ci/test_run_all.sh