Ignore .env files in .gitignore - #35
Open
Gandy2025 wants to merge 1 commit into
Open
Conversation
Add .env / .env.* to .gitignore (with an !.env.example negation so a template can still be committed later). Nothing is leaked today — no tracked .env exists — but this prevents a future `git add .` from committing real credentials. Fixes the sole minor finding (Secrets & Credentials) from the 2026-07-09 production readiness scan. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Append an environment/secrets block to the repo-root
.gitignore:Why
Fixes the sole finding from the 2026-07-09 production readiness scan
(score 96/100, tier Launch-ready): [Minor · confirmed]
.envis notignored in
.gitignore— dimension Secrets & Credentials.Nothing is leaked today (no tracked
.envexists), but without this afuture
git add .could commit a.envholding real credentials. The!.env.examplenegation is harmless future-proofing so a template can becommitted later.
Machine-readable findings: https://report.first-tree.ai/agent-team-foundation-launch-readiness-scan-20260709-e22635db.json
Verification
.envand.env.*are now ignored;.env.exampleremains committable.Only
.gitignoreis changed (6 insertions).