South Africa posted a third consecutive primary budget surplus, underscoring the government’s commitment to repairing state finances.