Zachary Adam Gordon (born February 15, 1998) is an American actor. Gordon began his professional acting career at the age of eight and as a child came to prominence playing Greg Heffley in the first three films of the Diary of a Wimpy Kid film series. Transitioning into acting roles as an adult, he has played Tate Wilson in Good Trouble and Jason Cohen in Dead of Summer.