From 06ded3e692027803db9a21661a9b37486ca4b742 Mon Sep 17 00:00:00 2001 From: Alexander Tesfamichael Date: Sat, 14 Oct 2023 00:28:52 +0200 Subject: [PATCH] fix: use service account from path --- src/bin/migrate-from-gcs.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/migrate-from-gcs.rs b/src/bin/migrate-from-gcs.rs index d1b57fd..55b6ef0 100644 --- a/src/bin/migrate-from-gcs.rs +++ b/src/bin/migrate-from-gcs.rs @@ -51,8 +51,9 @@ const GCS_BUCKET: &str = "execution-payload-archive"; fn get_gcs_object_store() -> anyhow::Result { // We can't read directly from the gcs_store so mimic what it does. No need to blow up if we fail. - info!(gcs_bucket = "execution-payload-archive", "using GCS store"); - let gcs_store = GoogleCloudStorageBuilder::from_env() + info!(gcs_bucket = GCS_BUCKET, "using GCS store"); + let gcs_store = GoogleCloudStorageBuilder::new() + .with_service_account_path("./gcs_secret.json") .with_bucket_name(GCS_BUCKET) .build()?; Ok(gcs_store)