The Hershey Company has made a short-term credit agreement for a revolving credit facility to borrow up to US$400m - freeing funds for general corporate purposes.