Add more error handling to zstd extraction

This commit is contained in:
Henry Mercer 2024-12-03 15:10:08 +00:00
parent d57328a17b
commit d5bcf48469
6 changed files with 49 additions and 37 deletions

2
lib/tools-download.js generated
View file

@ -119,7 +119,7 @@ function getToolcacheDirectory(version) {
function writeToolcacheMarkerFile(extractedPath, logger) {
const markerFilePath = `${extractedPath}.complete`;
fs.writeFileSync(markerFilePath, "");
logger.debug(`Wrote marker file to ${markerFilePath}`);
logger.info(`Wrote toolcache marker file to ${markerFilePath}`);
}
function sanitizeUrlForStatusReport(url) {
return ["github/codeql-action", "dsp-testing/codeql-cli-nightlies"].some((repo) => url.startsWith(`https://github.com/${repo}/releases/download/`))