Delete detection results after they have been fetched
Summary
The detection results are added to the object opts.jobStore
and are kept in memory indefinitely. This leads to the process running out of memory eventually.
Proposal
To avoid the process running out of memory, the results should be deleted after they have been fetched by the client https://gitlab.com/gitlab-org/security-products/package-hunter/-/blob/c15b1dc2199386dc3547bdad6dbd173486827379/src/route.js#L38