What in the world does that have to do, with anything?
Having a security clearance, comes after being elected.
Not before.
I think once they’re nominated, they get regular national security briefings. I don’t seriously think you could get away with denying a major-party nominee a clearance, though.