​Kellyanne Conway, a top strategist for President Trump, violated federal law when she used her White House position to weigh in on political races — and the Office of Special Counsel on Tuesday recommended she be disciplined.

During appearances on “Fox and Friends” on Nov. 20 and CNN on Dec. 6, she violated the Hatch Act when she promoted the candidacy of Republican Senate candidate Roy Moore and spoke against Democratic candidate Doug Jones.

Jones emerged as the victor in the Alabama race.

“While the Hatch Act allows federal employees to express their views about candidates and political issues as private citizens, it restricts employees from using their official government positions for partisan political purposes, including by trying to influence partisan elections,” ​the watchdog agency said.

The OSC submitted its report to Trump for “appropriate disciplinary action.”

​The White House defended Conway, saying she didn’t “advocate for or against” any candidate.​

​“She simply expressed the president’s obvious position that he have people in the House and Senate who support his agenda​,” said deputy press secretary Hogan Gidley.​

It’s not ​Conway’s​ first ethics lapse.

The White House Office of Legal Counsel said it had spoken to Conway ​but did not otherwise discipline her ​after she touted Ivanka Trump’s clothing line on Fox News in February 2017.

“Go buy Ivanka’s stuff is what I would tell you. It’s a wonderful line. I own some of it. I’m going to give a free commercial here. Go buy it today, everybody,” she said.

​By doing so, she violated the Office of Government Ethics rule banning officials in the executive branch from endorsing products in their official capacities.

Rep. Elijah Cummings urged Trump to take “swift” action.

“Ms. Conway has received multiple trainings and warnings, yet she still refuses to follow basic ethics rules. The ​P​resident must take swift and serious disciplinary action against Ms. Conway​,​”​ the Maryland Democrat wrote on Twitter.​