The force that acts as the centripetal force that a planet requires to revolve around Sun is
the gravitational pull of the sun
The gravitational pull of sun provides necessary centripetal acceleration to the planet to revolve around it. This force depends on the product of the mass of the planet and the sun and the distance between them.