Search code examples
androidgitgithubyoutube-data-apiandroid-youtube-api

Securing API key on Github after being pushed


I have unknowingly uploaded my api key for my app on Github and thus I deleted the api key from console.developer.google.com

,Did it guarantee me that there will not be any issue with that api key?

Also ,I want help in how to remove that from all the commits in the project on Github.

Any Suggestions are welcomed.


Solution

  • Did it guarantee me that there will not be any issue with that api key?

    Yes, considering the key is deleted from your account. Do test it, as commented.

    I want help in how to remove that from all the commits in the project on Github.

    Follow the GitHub guide "Removing sensitive data from a repository".
    The BFG repo cleaner can help too.