A civilian who held a top secret security clearance was sentenced to a year and a day in prison Thursday for using his government computer to view child pornography.