mirror of
https://github.com/actions/cache.git
synced 2025-03-26 08:26:06 +00:00
debugging
This commit is contained in:
parent
5b6ae99d8b
commit
c30eb5542e
4 changed files with 20 additions and 4 deletions
6
dist/restore-only/index.js
vendored
6
dist/restore-only/index.js
vendored
|
@ -5739,17 +5739,21 @@ class CacheServiceClient {
|
|||
*/
|
||||
maskSigUrl(url, urlType) {
|
||||
const sigMatch = url.match(/[?&]sig=([^&]+)/);
|
||||
(0, core_1.debug)(`Sigmatch is ${sigMatch}`);
|
||||
if (sigMatch) {
|
||||
(0, core_1.setSecret)(sigMatch[1]);
|
||||
(0, core_1.setSecret)(url);
|
||||
(0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
|
||||
}
|
||||
}
|
||||
maskSecretUrls(body) {
|
||||
(0, core_1.debug)('body is passed to masksecreturls');
|
||||
(0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
|
||||
if ('signedUploadUrl' in body && body.signedUploadUrl) {
|
||||
(0, core_1.debug)('entered that there is signedupload url');
|
||||
this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
|
||||
}
|
||||
if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
|
||||
(0, core_1.debug)('entered that there is signed download url');
|
||||
this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
|
||||
}
|
||||
}
|
||||
|
|
6
dist/restore/index.js
vendored
6
dist/restore/index.js
vendored
|
@ -5739,17 +5739,21 @@ class CacheServiceClient {
|
|||
*/
|
||||
maskSigUrl(url, urlType) {
|
||||
const sigMatch = url.match(/[?&]sig=([^&]+)/);
|
||||
(0, core_1.debug)(`Sigmatch is ${sigMatch}`);
|
||||
if (sigMatch) {
|
||||
(0, core_1.setSecret)(sigMatch[1]);
|
||||
(0, core_1.setSecret)(url);
|
||||
(0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
|
||||
}
|
||||
}
|
||||
maskSecretUrls(body) {
|
||||
(0, core_1.debug)('body is passed to masksecreturls');
|
||||
(0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
|
||||
if ('signedUploadUrl' in body && body.signedUploadUrl) {
|
||||
(0, core_1.debug)('entered that there is signedupload url');
|
||||
this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
|
||||
}
|
||||
if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
|
||||
(0, core_1.debug)('entered that there is signed download url');
|
||||
this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
|
||||
}
|
||||
}
|
||||
|
|
6
dist/save-only/index.js
vendored
6
dist/save-only/index.js
vendored
|
@ -5739,17 +5739,21 @@ class CacheServiceClient {
|
|||
*/
|
||||
maskSigUrl(url, urlType) {
|
||||
const sigMatch = url.match(/[?&]sig=([^&]+)/);
|
||||
(0, core_1.debug)(`Sigmatch is ${sigMatch}`);
|
||||
if (sigMatch) {
|
||||
(0, core_1.setSecret)(sigMatch[1]);
|
||||
(0, core_1.setSecret)(url);
|
||||
(0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
|
||||
}
|
||||
}
|
||||
maskSecretUrls(body) {
|
||||
(0, core_1.debug)('body is passed to masksecreturls');
|
||||
(0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
|
||||
if ('signedUploadUrl' in body && body.signedUploadUrl) {
|
||||
(0, core_1.debug)('entered that there is signedupload url');
|
||||
this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
|
||||
}
|
||||
if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
|
||||
(0, core_1.debug)('entered that there is signed download url');
|
||||
this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
|
||||
}
|
||||
}
|
||||
|
|
6
dist/save/index.js
vendored
6
dist/save/index.js
vendored
|
@ -5739,17 +5739,21 @@ class CacheServiceClient {
|
|||
*/
|
||||
maskSigUrl(url, urlType) {
|
||||
const sigMatch = url.match(/[?&]sig=([^&]+)/);
|
||||
(0, core_1.debug)(`Sigmatch is ${sigMatch}`);
|
||||
if (sigMatch) {
|
||||
(0, core_1.setSecret)(sigMatch[1]);
|
||||
(0, core_1.setSecret)(url);
|
||||
(0, core_1.debug)(`Masked ${urlType}: ${url.replace(sigMatch[1], '***')}`);
|
||||
}
|
||||
}
|
||||
maskSecretUrls(body) {
|
||||
(0, core_1.debug)('body is passed to masksecreturls');
|
||||
(0, core_1.debug)(`Body in mask urls: ${JSON.stringify(body, null, 2)}`);
|
||||
if ('signedUploadUrl' in body && body.signedUploadUrl) {
|
||||
(0, core_1.debug)('entered that there is signedupload url');
|
||||
this.maskSigUrl(body.signedUploadUrl, 'signed_upload_url');
|
||||
}
|
||||
if ('signedDownloadUrl' in body && body.signedDownloadUrl) {
|
||||
(0, core_1.debug)('entered that there is signed download url');
|
||||
this.maskSigUrl(body.signedDownloadUrl, 'signed_download_url');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue