Before a fundraise
Founders raising a seed or Series A
The situation. An investor is going to run technical due diligence, and you do not know what they will find.
What the audit is used for. Run the audit on your own repository first. Disclosing known issues with a prioritized plan builds credibility; letting an analyst discover them mid-process is what damages a deal.