So Joshua made peace with them and made a covenant to let them live, which the leaders of the community sealed with an oath.