An electrocardiogram (EKG) has no serious risks. It's a harmless, painless test that detects the heart's electrical activity. EKGs don't give off electrical charges, such as shocks.
You may develop a mild rash where the electrodes (soft patches) were attached. This rash often goes away without treatment.