Environmental groups and advocates are cheering the decision by state environmental officials to deny permits for the Millennium Pipeline to connect to a Hudson Valley power plant that is playing a supporting role in the corruption case against former gubernatorial aide Joe Percoco.

“I wholeheartedly applaud the DEC for denying a key permit needed to connect the Millennium Pipeline to the CPV power plant,” said Assemblyman James Skoufis, a Democrat who represents the area. “With a pending criminal case alleging corruption at CPV, the DEC made the right decision to put the safety of the community before politics.”

Percoco, who’s case goes to trial early next year, is accused of soliciting bribes from Competitive Power Ventures that also paid his wife $90,000.

Opponents of the pipeline had seized on the connection, protesting Percoco’s court appearances.

The permit decision was cheered by Mark Ruffalo, the actor and environmental advocate, who specifically thanked Gov. Andrew Cuomo.

“Thanks to Governor Cuomo and the Department of Environmental Conservation for carefully reviewing the impacts of the Millennium Pipeline and rightfully denying it,” Ruffalo said. “This dangerous pipeline would have harmed the environment, local residents, and exacerbated climate change.”

Updated: Gary Lambert, the CEO and president of Competitive Power Ventures, called the DEC decision “confusing” knocked it as not having merit. The company, he said, plans to press forward with the project.

“We will continue to move forward with our scheduled opening in early 2018,” Lambert said. “We will commission and operate on our backup fuel as we have every confidence the pipeline will ultimately be approved. Once the pipeline is complete, the Valley Energy Center will begin to reduce the region’s overall emissions, protect and enhance the reliability of the region’s electric grid, and start saving New York’s energy consumers more than an estimated $600 million in electricity costs annually.”