Update advisory scanning to only scan recently ingested
What does this MR do and why?
Advisories that are older than a day should not be scanned to avoid a thundering herd problem.
See this thread in the related issue for why published_date
was chosen: #421294 (comment 1526928295)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #421294 (closed)