diff --git a/pr-checks/toolcache.ts b/pr-checks/toolcache.ts index a14605e38..8ec7e80b5 100755 --- a/pr-checks/toolcache.ts +++ b/pr-checks/toolcache.ts @@ -19,7 +19,7 @@ function removeCodeQLFromToolcache() { } const codeqlPath = path.join(toolcachePath, "CodeQL"); - fs.rmdirSync(codeqlPath, { recursive: true }); + fs.rmSync(codeqlPath, { recursive: true }); core.info(`Removed '${codeqlPath}' from the toolcache.`); }