Skip to content

Commit b1bee1a

Browse files
authored
fix: activate service account needed for tests (#12737)
* for testing purposes * for testing purposes * revert
1 parent b3b8a4f commit b1bee1a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.kokoro/tests/run_tests.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ fi
9898
# install nox for testing
9999
pip install --user -q nox
100100

101+
# Use secrets acessor service account to get secrets
102+
if [[ -f "${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" ]]; then
103+
gcloud auth activate-service-account \
104+
--key-file="${KOKORO_GFILE_DIR}/secrets_viewer_service_account.json" \
105+
--project="cloud-devrel-kokoro-resources"
106+
fi
107+
101108
# On kokoro, we should be able to use the default service account. We
102109
# need to somehow bootstrap the secrets on other CI systems.
103110
if [[ "${TRAMPOLINE_CI}" == "kokoro" ]]; then

0 commit comments

Comments
 (0)