Add explanation for --google_default_credentials
bazel supports application default credentials to access GCS bucket too.
Closes #8297.
PiperOrigin-RevId: 249233903
diff --git a/site/docs/remote-caching.md b/site/docs/remote-caching.md
index a3af9b2..24b8d53 100644
--- a/site/docs/remote-caching.md
+++ b/site/docs/remote-caching.md
@@ -167,7 +167,8 @@
* Pass the following URL to Bazel by using the flag:
`--remote_cache=https://storage.googleapis.com/bucket-name`
where `bucket-name` is the name of your storage bucket.
- * Pass the authentication key using the flag: `--google_credentials=/path/to/your/secret-key.json`.
+ * Pass the authentication key using the flag: `--google_credentials=/path/to/your/secret-key.json`, or
+ `--google_default_credentials` to use [Application Default Credentials].
5. You can configure Cloud Storage to automatically delete old files. To do so, see
[Managing Object Lifecycles](https://cloud.google.com/storage/docs/managing-lifecycles).
@@ -393,4 +394,4 @@
[Buildfarm]: https://github.com/bazelbuild/bazel-buildfarm
[BuildGrid]: https://gitlab.com/BuildGrid/buildgrid
[issue #4558]: https://github.com/bazelbuild/bazel/issues/4558
-
+[Application Default Credentials]: https://cloud.google.com/docs/authentication/production