An aide to President Trump is getting a warning from government ethics regulators for breaking federal law with his twitter attack on West Michigan Congressman Justin Amash.

The attack from White House social media director Dan Scavino came in early April. That's when Amash and fellow members of the conservative House Freedom Caucus were at odds with the President over the first version of the GOP plan to repeal and replace Obamacare.

Related: Amash to challengers: 'Bring it on' after Trump administration threat

On April 1, Scavino tweeted, "@realDonaldTrump is bringing auto plants & jobs back to Michigan. @justinamash is a big liability. #TrumpTrain, defeat him in primary."

According to the Washington Post, the U.S. Office of Special Counsel issued a warning to Scavino, saying he violated the "Hatch Act," which bans public officials from using their positions for political activity.

The office told Scavino any additional violations of the law could lead to further action, including losing his job.

►Make it easy to keep up to date with more stories like this. Download the WZZM 13 app now.

Have a news tip? Email, visit our Facebook page or Twitter.