--- a/rule_builder.go
+++ b/rule_builder.go.patched
@@ -722,6 +722,10 @@
 					// TODO: RBE_exec_root is set to the absolute path to the root of the source
 					// tree, which we don't want sandboxed actions to find. Remap it to ".".
 					"RBE_exec_root",
+					// CBBA:PATCH
+					// Keep HOME; containerized agents may have no passwd
+					// entry for the build user to fall back on.
+					"HOME",
 				}
 				for _, v := range inheritedVars {
 					result = append(result, &sbox_proto.EnvironmentVariable{
