They've accounted for that and Boeing has a lightning lab for testing.
That is another question, repairing the carbon fiber vs. aluminum skin. Since it is baked and essentially one big solid piece lets say some moron runs the forks of a forklift through the body of the plane, what is the repair cost and structural integrity afterwords compared to just replacing and re-riveting the aluminum skin of aircraft now?