From 5b6ae99d8b3373daef7c01e0641edc6925d3ec1d Mon Sep 17 00:00:00 2001
From: Salman Chishti <salmanmkc@GitHub.com>
Date: Fri, 7 Mar 2025 08:02:01 -0800
Subject: [PATCH] mask whole url

---
 dist/restore-only/index.js | 1 +
 dist/restore/index.js      | 1 +
 dist/save-only/index.js    | 1 +
 dist/save/index.js         | 1 +
 4 files changed, 4 insertions(+)

diff --git a/dist/restore-only/index.js b/dist/restore-only/index.js
index fa4dbb2..a5df35c 100644
--- a/dist/restore-only/index.js
+++ b/dist/restore-only/index.js
@@ -5741,6 +5741,7 @@ class CacheServiceClient {
         const sigMatch = url.match(/[?&]sig=([^&]+)/);
         if (sigMatch) {
             (0, core_1.setSecret)(sigMatch[1]);
+            (0, core_1.setSecret)(url);
             (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
         }
     }
diff --git a/dist/restore/index.js b/dist/restore/index.js
index 4574da1..44ea41b 100644
--- a/dist/restore/index.js
+++ b/dist/restore/index.js
@@ -5741,6 +5741,7 @@ class CacheServiceClient {
         const sigMatch = url.match(/[?&]sig=([^&]+)/);
         if (sigMatch) {
             (0, core_1.setSecret)(sigMatch[1]);
+            (0, core_1.setSecret)(url);
             (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
         }
     }
diff --git a/dist/save-only/index.js b/dist/save-only/index.js
index 279fc34..60ffd41 100644
--- a/dist/save-only/index.js
+++ b/dist/save-only/index.js
@@ -5741,6 +5741,7 @@ class CacheServiceClient {
         const sigMatch = url.match(/[?&]sig=([^&]+)/);
         if (sigMatch) {
             (0, core_1.setSecret)(sigMatch[1]);
+            (0, core_1.setSecret)(url);
             (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
         }
     }
diff --git a/dist/save/index.js b/dist/save/index.js
index d28bcd0..d887a0b 100644
--- a/dist/save/index.js
+++ b/dist/save/index.js
@@ -5741,6 +5741,7 @@ class CacheServiceClient {
         const sigMatch = url.match(/[?&]sig=([^&]+)/);
         if (sigMatch) {
             (0, core_1.setSecret)(sigMatch[1]);
+            (0, core_1.setSecret)(url);
             (0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
         }
     }