This happened a fair amount of times to me to the point that whenever I start on any project where I plan on using any API keys I instinctively add .env to the .gitignore file immediately before anything else.
And I recall my professor telling me about actual bots sifting through github looking for api keys accidentally commited in git histories to exploit.
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This happened a fair amount of times to me to the point that whenever I start on any project where I plan on using any API keys I instinctively add .env to the .gitignore file immediately before anything else.
And I recall my professor telling me about actual bots sifting through github looking for api keys accidentally commited in git histories to exploit.