Skip to content

Ignore local secret environment files - #2

Merged
Mrbaeksang merged 1 commit into
mainfrom
agent/ignore-secret-env
Jul 28, 2026
Merged

Mrbaeksang merged 1 commit into
mainfrom
agent/ignore-secret-env

Conversation

@Mrbaeksang

Copy link
Copy Markdown
Owner

What changed

  • ignore .env and .env.* files by default
  • retain support for a tracked .env.example

Why

A local npm bootstrap token was supplied through .env. The file was untracked but not ignored, which made accidental publication possible.

Impact

Local secret files no longer appear as untracked Git candidates. The actual .env file and its value are not included in this pull request.

Verification

  • .env resolves through git check-ignore
  • .env local permissions were restricted to owner-only (0600)
  • staged diff contains only .gitignore

@Mrbaeksang
Mrbaeksang marked this pull request as ready for review July 28, 2026 01:47
@Mrbaeksang
Mrbaeksang merged commit d6d60d5 into main Jul 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant