From 6a2955d43cb548d59cfd7cbff5944b30b7db9373 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Fri, 6 Mar 2020 09:43:06 -0800 Subject: [PATCH] Update bazel.sh (#5028) * Add google auth creds as environment variable for CI. Add a comment why this script is helpful * Add google auth creds as environment variable for CI. Add a comment why this script is helpful --- bazel.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bazel.sh b/bazel.sh index 07f30840f..bc481d2cf 100755 --- a/bazel.sh +++ b/bazel.sh @@ -1,6 +1,11 @@ #!/bin/bash +# This script serves as a wrapper around bazel to limit the scope of environment variables that +# may change the action output. Using this script should result in a higher cache hit ratio for +# cached actions with a more heremtic build. + env -i \ PATH=/usr/bin:/bin \ HOME=$HOME \ + GOOGLE_APPLICATION_CREDENTIALS=$GOOGLE_APPLICATION_CREDENTIALS \ bazel "$@"