Cal. Civ. Code § 2924o
(a) On and after January 1, 2023, in the case of any real property purchased pursuant to Section 2924m by an eligible bidder described in subparagraphs (C) to (G), inclusive, of paragraph (3) of subdivision (a) of that section, the property shall be subject to a recorded covenant that ensures the property shall be sold at an affordable housing cost, as defined in Section 50052.5 of the Health and Safety Code, or rented at an affordable rent, as defined in Section 50053 of the Health and Safety Code, for lower income households for 30 years from the date the trustee’s deed is issued, or a greater period of time if any of the following apply: