From 86dc48007a0f9f46377fc7df41a1fe2f0cf37060 Mon Sep 17 00:00:00 2001
From: haruhiko <haruhiko@weseek.co.jp>
Date: Tue, 21 Jul 2020 14:14:08 +0900
Subject: [PATCH] - Add disable credential passing command

---
 bin/boto.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/boto.sh b/bin/boto.sh
index 8ee5210..8ac4929 100755
--- a/bin/boto.sh
+++ b/bin/boto.sh
@@ -16,6 +16,9 @@ if [ -n "${GCP_PROJECT_ID}" ] && [ -n "${GCP_SERVICE_ACCOUNT_KEY_JSON_PATH}" ];
 elif [ -n "${GCP_ACCESS_KEY_ID}" ] && [ -n "${GCP_SECRET_ACCESS_KEY}" ]; then
   echo '[DEBUG] Using HMAC authorization'
 
+  # Disable credential passing (ref. https://cloud.google.com/storage/docs/gsutil_install)
+  ${GCLOUDCLI} config set pass_credentials_to_gsutil false
+  
   # Using HMAC authorization
   cat <<- HERE > /root/.boto
 [Credentials]