Keep track of amount of malware packages blocked

This commit is contained in:
Sander Declerck 2025-11-07 11:39:41 +01:00
parent f4694ba119
commit 1f570a9f39
No known key found for this signature in database
5 changed files with 65 additions and 8 deletions

View file

@ -35,7 +35,7 @@ function buildPipInterceptor(registry) {
registry
);
if (await isMalwarePackage(packageName, version)) {
req.blockRequest(403, "Forbidden - blocked by safe-chain");
req.blockMalware(packageName, version, req.targetUrl);
}
});