A quick web search finds some answers. eg https://www.spigglelaw.com/employment-blog/employers-affirma... """ Title VII prohibits employers from making employment decisions because of an individual’s skin color, national origin, sex, religion, or race. Therefore, it is illegal to give an applicant an advantage solely because of the applicant’s race. However, this is not always the case. Under United Steelworkers of A…
That being said, it's usually the company that receives penalties in these situations, and not individual employees. If a lawsuit is made, and the lawsuit is successful (a big "if" in itself), it's not a guarantee that you will be held personally liable.
Ultimately, the whole thing stinks. I have worked in companies before where hiring based on discrimination was applauded. This was because individuals were being judged on the most superficial merits, cogs in a startup machine to be slowly ground into a fine dust. Ask yourself if you think this is a moral thing for a company to do, and if it's moral for you to go along with it. It's easy for talented people to get new jobs in our industry.