The government says at no point was there a risk to the UK's energy system during the attack in July.