mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 05:19:10 +08:00 
			
		
		
		
	mask whole url
This commit is contained in:
		
							
								
								
									
										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], '***')}`);
 | 
			
		||||
        }
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user