Harrogate boosted their League Two survival hopes as they beat Swindon 1-0 at Wetherby Road to register a first victory in six attempts.