@@ -8866,26 +8866,27 @@ class CacheServiceClient {
8866
8866
/**
8867
8867
* Masks the `sig` parameter in a URL and sets it as a secret.
8868
8868
* @param url The URL containing the `sig` parameter.
8869
- * @param urlType The type of the URL (e.g., 'signed_upload_url', 'signed_download_url').
8869
+ * @returns A masked URL where the sig parameter value is replaced with '***' if found,
8870
+ * or the original URL if no sig parameter is present.
8870
8871
*/
8871
- maskSigUrl(url, urlType ) {
8872
+ maskSigUrl(url) {
8872
8873
const sigIndex = url.indexOf('sig=');
8873
8874
if (sigIndex !== -1) {
8874
8875
const sigValue = url.substring(sigIndex + 4);
8875
8876
(0, core_1.setSecret)(sigValue);
8876
- const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
8877
- (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
8877
+ return `${url.substring(0, sigIndex + 4)}***`;
8878
8878
}
8879
+ return url;
8879
8880
}
8880
8881
maskSecretUrls(body) {
8881
8882
if (typeof body === 'object' && body !== null) {
8882
8883
if ('signed_upload_url' in body &&
8883
8884
typeof body.signed_upload_url === 'string') {
8884
- this.maskSigUrl(body.signed_upload_url, 'signed_upload_url' );
8885
+ this.maskSigUrl(body.signed_upload_url);
8885
8886
}
8886
8887
if ('signed_download_url' in body &&
8887
8888
typeof body.signed_download_url === 'string') {
8888
- this.maskSigUrl(body.signed_download_url, 'signed_download_url' );
8889
+ this.maskSigUrl(body.signed_download_url);
8889
8890
}
8890
8891
}
8891
8892
else {
@@ -71425,7 +71426,7 @@ module.exports = /*#__PURE__*/JSON.parse('[[[0,44],"disallowed_STD3_valid"],[[45
71425
71426
/***/ ((module) => {
71426
71427
71427
71428
"use strict";
71428
- module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.2","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc","clean":"rm -rf node_modules lib"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
71429
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"@actions/cache","version":"4.0.2","preview":true,"description":"Actions cache lib","keywords":["github","actions","cache"],"homepage":"https://github.com/actions/toolkit/tree/main/packages/cache","license":"MIT","main":"lib/cache.js","types":"lib/cache.d.ts","directories":{"lib":"lib","test":"__tests__"},"files":["lib","!.DS_Store"],"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/actions/toolkit.git","directory":"packages/cache"},"scripts":{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json","test":"echo \\"Error: run tests from root\\" && exit 1","tsc":"tsc"},"bugs":{"url":"https://github.com/actions/toolkit/issues"},"dependencies":{"@actions/core":"^1.11.1","@actions/exec":"^1.0.1","@actions/glob":"^0.1.0","@actions/http-client":"^2.1.1","@actions/io":"^1.0.1","@azure/abort-controller":"^1.1.0","@azure/ms-rest-js":"^2.6.0","@azure/storage-blob":"^12.13.0","@protobuf-ts/plugin":"^2.9.4","semver":"^6.3.1"},"devDependencies":{"@types/node":"^22.13.9","@types/semver":"^6.0.0","typescript":"^5.2.2"}}');
71429
71430
71430
71431
/***/ })
71431
71432
0 commit comments