From b0b1dc3d992ba118be45fae357fd9a3248d7a786 Mon Sep 17 00:00:00 2001
From: YashVaidya-cleardata
 <86681679+YashVaidya-cleardata@users.noreply.github.com>
Date: Wed, 8 May 2024 16:08:46 -0500
Subject: [PATCH] update dataform workspace extractor

---
 rpe/extractors/gcp_auditlogs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rpe/extractors/gcp_auditlogs.py b/rpe/extractors/gcp_auditlogs.py
index b886d9b..cc640a8 100644
--- a/rpe/extractors/gcp_auditlogs.py
+++ b/rpe/extractors/gcp_auditlogs.py
@@ -440,7 +440,7 @@ def add_resource():
                 add_resource()
             elif len(name_bits) == 8 and name_bits[6] == "workspaces":
                 resource_data["resource_type"] = "dataform.googleapis.com/Workspace"
-                resource_data["repository"] = name_bits[4]
+                resource_data["repository"] = name_bits[5]
                 add_resource()
 
         return resources