Per the article he is also charged re: the espionage act.
In May 2019 and June 2020, the United States government unsealed new indictments against Assange, charging him with violating the Espionage Act of 1917 and alleging a history of conspiring with hackers.
The fact that he's charged with hacking (merits aside) as opposed to leaking is proof that non-military citizens are indeed not breaking the law.