Giants defensive end Jason Pierre-Paul has settled his lawsuit against ESPN and its reporter Adam Schefter for posting his private medical records online to millions of readers.

Pierre-Paul “has amicably resolved the pending litigation,” the football player’s attorney Mitchell Schuster of Meister Seelig & Fein told The Post.

“He will not be making any further comment,” added his other lawyers, Kevin Fritz and John C. Lukacs Sr.

The terms of the deal, finalized Friday, are confidential. The agreement was the result of a court-ordered mediation.

Pierre-Paul sued in Miami federal court in February 2016, citing a violation of his privacy.

The NFL star blew off a finger in a Fourth of July fireworks accident and was treated at Jackson Memorial Hospital in Miami.

Schefter “improperly obtained” Pierre-Paul’s medical chart showing the defensive end had his right index finger amputated, the suit says. Schefter then posted the record on Twitter to nearly 4 million followers.

Schefter eventually admitted he “could have and should have done even more to protect [Pierre-Paul’s] medical records” in an interview with Sports Illustrated.

Lawyers for ESPN and Schefter had asked Judge Marcia G. Cooke to toss the case, citing First Amendment protections, but the jurist green-lighted the case in August.

Schefter of New York is a top ESPN talent contributing to shows like “NFL Insiders” and “SportsCenter.”

An attorney for ESPN did not immediately respond to a request seeking comment.

Pierre-Paul, who will become an unrestricted free agent in March, wants an $85 million contract.

Our editors found this article on this site using Google and regenerated it for our readers.