A student was arrested Thursday after he brought a gun to Mira Monte High School, but authorities said they're not aware of any plans the boy had to actually use the weapon.

Another student heard about the boy's intention to bring a gun to school and tipped off school police, who searched him first thing Thursday morning when his school bus arrived, according to Kern High School District director of pupil personnel Otis Jennings, who oversees discipline for the district.

The boy was found to be in possession of an unloaded semi-automatic firearm, and also had a magazine in his backpack, Jennings said.

An investigation is still pending, but thus far there are no indications the boy was targeting anyone in particular, nor is there evidence the incident was gang-related, Jennings said.

The campus never went on lockdown.

"Thanks to a responsible person who did the right thing, at no time was anyone in danger," Jennings said. "The fact that we were alerted allowed our police department to respond promptly and appropriately."

Jennings declined to disclose the boy's name, grade or age because the student is a minor. The boy was arrested and booked into Juvenile Hall.

Mira Monte Principal Jaime Quinónez declined to comment, referring calls to Jennings.

Under the state education code, students who bring a weapon to school are generally expelled for at least a year, but they are entitled to due process, first.