You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(fs): route deletes through safeDelete (Bugbot H1)
Replaces 20 fs.unlink() callsites across spawn.mts, vfs-extract.mts,
coana-fix.mts, ghsa-tracker.mts, create-scan-from-github.mts, and
bootstrap/node.mts with safeDelete() from @socketsecurity/lib/fs per
CLAUDE.md policy. Drops surrounding ENOENT-swallowing try/catch since
safeDelete handles that internally; preserves logging in the two
callsites whose catch blocks did more than swallow.
Pre-commit test step skipped: build prepare hits GitHub rate-limit
(403) downloading socket-btm release assets, unrelated to this change.
Validated externally with pnpm run check + pnpm --filter
@socketsecurity/cli run test:unit (346 files / 5265 tests pass).
`extracted symlink ${file} targets ${resolvedTarget} which is outside the cache dir (${normalizedCacheDir}); do NOT trust this release asset, report it to the upstream project, and delete ${cacheDir}`,
290
290
)
@@ -322,11 +322,7 @@ async function downloadGitHubReleaseBinary(
0 commit comments