US confectionery firm The Hershey Company has announced entering into a new five-year credit agreement to establish an unsecured revolving credit facility to borrow up to US$1.1bn.