That's ok, I guess. But I was thinking more in the lines of blocking the push unless you disabled the feature from your repo.
I once pushed a GitHub token in a public repository. They immediately revoked the token and notified me by email.
I believe they have it - I've gotten notified in the past when I committed secrets on purpose, for test applications. I'm not 100% sure they were from GitHub, but I think they were.