The former student who carried a firearm into Parkrose High School in May has agreed to plead guilty.

Angel Granados-Diaz, 19, is set to appear in court on Thursday for a change of plea hearing.

Granados-Diaz has been charged with two counts of possession of a weapon in a public building, a felony, as well as possession of a loaded firearm in a public building and recklessly endangering another person, both misdemeanors.

The exact terms of the deal were not immediately available. But Adam Thayne, Granados-Diaz’s defense attorney, confirmed to OPB a deal had been reached with the Multnomah County District Attorney’s Office.

“We don’t comment on pretrial negotiations,” said Brent Weisberg, a spokesman for the District Attorney’s Office.

A judge will still have to approve any agreement.

On May 17, just before noon, Granados-Diaz entered Parkrose High School in Northeast Portland carrying a shotgun, according to police.

He was confronted and then disarmed by Parkrose High School football coach Keanon Lowe, a former football star for the University of Oregon. Lowe’s actions have wildly been considered heroic.