Former New York Gov. Andrew Cuomo will not have to pay back the $5 million that he earned for writing a book about leadership during the COVID-19 pandemic, a New York judge ruled Tuesday. 

Cuomo, who received glowing media coverage at the outset of the pandemic but later faced criticism over his handling of nursing home COVID-19 deaths, wrote the book in 2020, titled "American Crisis: Leadership Lessons from the COVID-19 Pandemic." 

The now-defunct Joint Commission on Public Ethics (JCOPE) approved Cuomo's request to write the book in 2020, but withdrew that approval last year and accused the former governor of using state resources to write the memoir

Andrew Cuomo in pink tie

FILE PHOTO: Former New York Gov. Andrew Cuomo speaks during the daily media briefing at the Office of the Governor of the State of New York on June 12, 2020 in New York City.  (Jeenah Moon/Getty Images)

A law firm that was hired by JCOPE to investigate the book deal said in a report last month that it agreed "with the conclusion in the JCOPE Notice that Governor Cuomo ‘misused the power and authority of his office to create, market and promote’" the memoir. 

CUOMO: DOJ 'MUST IMMEDIATELY EXPLAIN' TRUMP RAID OR RISK UNDERMINING JAN 6 PROBE

Cuomo accused JCOPE of being biased against him and asserted that any work done on the book's manuscript by his staff was completed on their own time. 

The law firm's report also faulted JCOPE for failing "to assert itself as a watchdog agency against the Governor." 

Andrew Cuomo speaks at COVID event

New York Governor Andrew Cuomo speaks during an event at One World Trade Center in New York on June 15, 2021  (TIMOTHY A. CLARY/AFP via Getty Images)

New York Gov. Kathy Hochul, who took over for Cuomo after he resigned last August amid sexual misconduct allegations, disbanded the JCOPE and replaced it with a new ethics commission earlier this year. 

"If, upon a review of JCOPE’s actions, the new commission decides to pursue action against Cuomo, proceeds with the adjudicatory hearing, and determines that a violation has occurred, the new Commission may then impose a civil penalty against him," Judge Denise A. Hartman wrote Tuesday. 

CLICK HERE TO GET THE FOX NEWS APP

Cuomo's attorney, Rita Glavin, said that "JCOPE’s utter lawlessness" has been "exposed."

"JCOPE’s conduct was shameful, unlawful, and a waste of taxpayer funds," Glavin told Fox News Digital. 

The Associated Press contributed to this report.