Sitelet https://web.archive.org/web/20211016143817/https://github.com/github/gitignore/pull/3651
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore .env.production in Node.js #3651

Merged
merged 2 commits into from May 25, 2021
Merged

Ignore .env.production in Node.js #3651

merged 2 commits into from May 25, 2021

Conversation

@kachick
Copy link
Contributor

@kachick kachick commented Feb 15, 2021

Reasons for making this change:

See https://github.com/search?q=filename%3A.env.production

スクリーンショット 2021-02-16 3 02 47

Then I saw some configurations they contain actual DB passwords, AWS secrets... (So I sent 2 PRs and 1 repository is deleted immediately...)

I 🙏 this change reduces sad accidents.


FYI: Rails.gitignore already has same config from another issue #3065

Node.gitignore Outdated Show resolved Hide resolved
bl-ue
bl-ue approved these changes Feb 27, 2021
Copy link
Contributor

@bl-ue bl-ue left a comment

Really, really good idea 😬

I just opened 3 issues on repos where I found similar things.

BTW it's already 32,996 .env.productions now haha 😄

@kachick kachick changed the title Ignore .env.* in Node.js Ignore .env.production in Node.js Feb 27, 2021
Copy link

@MattIPv4 MattIPv4 left a comment

Lgtm, seems sane

@martinwoodward martinwoodward merged commit d0f9781 into github:master May 25, 2021
@kachick
Copy link
Contributor Author

@kachick kachick commented May 25, 2021

Thank you all!

@kachick kachick deleted the node-ignore-envs branch May 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants