From 06ac873516e2836a8ac649b6d8d45d45fe91b229 Mon Sep 17 00:00:00 2001 From: Amy Wu Date: Fri, 11 Sep 2026 16:21:36 -0700 Subject: [PATCH] chore: Mark the checkout safe before git runs in the agentplatform release PiperOrigin-RevId: 980079419 --- .kokoro/release/agentplatform.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.kokoro/release/agentplatform.sh b/.kokoro/release/agentplatform.sh index 40b35b5f95..6a06cfee63 100755 --- a/.kokoro/release/agentplatform.sh +++ b/.kokoro/release/agentplatform.sh @@ -38,6 +38,9 @@ readonly SOURCE_TREE="agentplatform" function checkout_release_tag() { cd "${REPO_DIR}" + # The checkout is owned by a different uid than the build process, which git + # refuses to operate on until the path is marked safe. + git config --global --add safe.directory "${REPO_DIR}" if [[ -n "${_LOUHI_TAG_NAME:-}" ]]; then echo "Tag trigger detected; checking out ${_LOUHI_TAG_NAME}" git fetch --tags origin || true