Julian Castro, the Secretary of Housing and Urban Development in the Obama administration, has been a high profile choice for Hillary Clinton’s vice president. And like his potential running mate, he broke the law.

The U.S. Office of Special Counsel said Monday that the Housing and Urban Development administrator violated the law when he offered political views during an interview in his official capacity. His voiced views, of course, were pro-Hillary Clinton, but doing so was a clear violation of the Hatch Act.

The seal of the Housing and Urban Development department was visible behind Castro as he answered questions from host Katie Couric in an April interview about his support for Clinton, including his chances as running mate.

The report found that Castro did not separate his role as HUD secretary well enough from his role as a Clinton supporter. The findings were referred to President Obama, who has yet to comment on the matter.

In the interview, Castro said: “In the end, the American people understand that she has a positive vision for the country that includes opportunity for everybody, and she can actually get it done.” Criticism of Republicans followed after.

Here is the precise definition of the Hatch Act, which Castro clearly violated with the comments:

“The Hatch Act of 1939, officially An Act to Prevent Pernicious Political Activities, is a United States federal law whose main provision prohibits employees in the executive branch of the federal government, except the president, vice-president, and certain designated high-level officials of that branch, from engaging in some forms of political activity. The law was named for Senator Carl Hatch of New Mexico.”