mirror of
https://github.com/actions/cache.git
synced 2025-03-26 08:26:06 +00:00
mask whole url
This commit is contained in:
parent
eca7c65a55
commit
5b6ae99d8b
4 changed files with 4 additions and 0 deletions
1
dist/restore-only/index.js
vendored
1
dist/restore-only/index.js
vendored
|
@ -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], '***')}`);
|
||||
}
|
||||
}
|
||||
|
|
1
dist/restore/index.js
vendored
1
dist/restore/index.js
vendored
|
@ -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], '***')}`);
|
||||
}
|
||||
}
|
||||
|
|
1
dist/save-only/index.js
vendored
1
dist/save-only/index.js
vendored
|
@ -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], '***')}`);
|
||||
}
|
||||
}
|
||||
|
|
1
dist/save/index.js
vendored
1
dist/save/index.js
vendored
|
@ -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], '***')}`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue