mirror of
				https://github.com/actions/cache.git
				synced 2025-11-04 00:10:55 +00:00 
			
		
		
		
	Mask download URL in logs (#110)
This commit is contained in:
		
					parent
					
						
							
								d9fe1b81f9
							
						
					
				
			
			
				commit
				
					
						639f9d8b81
					
				
			
		
					 1 changed files with 3 additions and 2 deletions
				
			
		| 
						 | 
					@ -61,11 +61,12 @@ export async function getCacheEntry(
 | 
				
			||||||
        throw new Error(`Cache service responded with ${response.statusCode}`);
 | 
					        throw new Error(`Cache service responded with ${response.statusCode}`);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    const cacheResult = response.result;
 | 
					    const cacheResult = response.result;
 | 
				
			||||||
    core.debug(`Cache Result:`);
 | 
					 | 
				
			||||||
    core.debug(JSON.stringify(cacheResult));
 | 
					 | 
				
			||||||
    if (!cacheResult || !cacheResult.archiveLocation) {
 | 
					    if (!cacheResult || !cacheResult.archiveLocation) {
 | 
				
			||||||
        throw new Error("Cache not found.");
 | 
					        throw new Error("Cache not found.");
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    core.setSecret(cacheResult.archiveLocation);
 | 
				
			||||||
 | 
					    core.debug(`Cache Result:`);
 | 
				
			||||||
 | 
					    core.debug(JSON.stringify(cacheResult));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return cacheResult;
 | 
					    return cacheResult;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue