If you can guess keys and secrets, you probably wouldn't use that power to invalidate them!
Writing millions of generated tokens to a text file and pushing them to Github is easy.
There is obviously no meaningful benefit to doing this, except potentially breaking some random deployments until they can replace the keys.