Two possibilities there: either your secret was published to others, and it's not a secret anymore, or it wasn't, and you can easily remove it. (Even from your local repo, if necessary remove the relevant blob hash)
Easy to say but a chinese dev went to prison for pushing DJi's secret crypto key to github