Fix end clause in secrets partial