The Iron Giant (1999)
Movie
Released
About 86 minutes in the original theatrical cut. A boy finds a robot and tries to keep him out of sight. The friendship is easy to get into, but military pursuit and an emotional ending make this a better fit for children who want some peril.
More about The Iron Giant