mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 05:19:10 +08:00 
			
		
		
		
	mask
This commit is contained in:
		
							
								
								
									
										2
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore-only/index.js
									
									
									
									
										vendored
									
									
								
							@@ -8872,7 +8872,7 @@ class CacheServiceClient {
 | 
				
			|||||||
    maskSigUrl(url, urlType) {
 | 
					    maskSigUrl(url, urlType) {
 | 
				
			||||||
        const sigIndex = url.indexOf('sig=');
 | 
					        const sigIndex = url.indexOf('sig=');
 | 
				
			||||||
        if (sigIndex !== -1) {
 | 
					        if (sigIndex !== -1) {
 | 
				
			||||||
            const sigValue = url.substring(sigIndex + 4).split('&')[0];
 | 
					            const sigValue = url.substring(sigIndex + 4);
 | 
				
			||||||
            (0, core_1.setSecret)(sigValue);
 | 
					            (0, core_1.setSecret)(sigValue);
 | 
				
			||||||
            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
					            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
				
			||||||
            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
					            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/restore/index.js
									
									
									
									
										vendored
									
									
								
							@@ -8872,7 +8872,7 @@ class CacheServiceClient {
 | 
				
			|||||||
    maskSigUrl(url, urlType) {
 | 
					    maskSigUrl(url, urlType) {
 | 
				
			||||||
        const sigIndex = url.indexOf('sig=');
 | 
					        const sigIndex = url.indexOf('sig=');
 | 
				
			||||||
        if (sigIndex !== -1) {
 | 
					        if (sigIndex !== -1) {
 | 
				
			||||||
            const sigValue = url.substring(sigIndex + 4).split('&')[0];
 | 
					            const sigValue = url.substring(sigIndex + 4);
 | 
				
			||||||
            (0, core_1.setSecret)(sigValue);
 | 
					            (0, core_1.setSecret)(sigValue);
 | 
				
			||||||
            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
					            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
				
			||||||
            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
					            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save-only/index.js
									
									
									
									
										vendored
									
									
								
							@@ -8872,7 +8872,7 @@ class CacheServiceClient {
 | 
				
			|||||||
    maskSigUrl(url, urlType) {
 | 
					    maskSigUrl(url, urlType) {
 | 
				
			||||||
        const sigIndex = url.indexOf('sig=');
 | 
					        const sigIndex = url.indexOf('sig=');
 | 
				
			||||||
        if (sigIndex !== -1) {
 | 
					        if (sigIndex !== -1) {
 | 
				
			||||||
            const sigValue = url.substring(sigIndex + 4).split('&')[0];
 | 
					            const sigValue = url.substring(sigIndex + 4);
 | 
				
			||||||
            (0, core_1.setSecret)(sigValue);
 | 
					            (0, core_1.setSecret)(sigValue);
 | 
				
			||||||
            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
					            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
				
			||||||
            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
					            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/save/index.js
									
									
									
									
										vendored
									
									
								
							@@ -8872,7 +8872,7 @@ class CacheServiceClient {
 | 
				
			|||||||
    maskSigUrl(url, urlType) {
 | 
					    maskSigUrl(url, urlType) {
 | 
				
			||||||
        const sigIndex = url.indexOf('sig=');
 | 
					        const sigIndex = url.indexOf('sig=');
 | 
				
			||||||
        if (sigIndex !== -1) {
 | 
					        if (sigIndex !== -1) {
 | 
				
			||||||
            const sigValue = url.substring(sigIndex + 4).split('&')[0];
 | 
					            const sigValue = url.substring(sigIndex + 4);
 | 
				
			||||||
            (0, core_1.setSecret)(sigValue);
 | 
					            (0, core_1.setSecret)(sigValue);
 | 
				
			||||||
            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
					            const maskedUrl = `${url.substring(0, sigIndex + 4)}***`;
 | 
				
			||||||
            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
					            (0, core_1.debug)(`Masked ${urlType}: ${maskedUrl}`);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user