Skip to content

[Security] .gitignore missing .env exclusion #64

Description

@mfogliatto

Description

The .gitignore file does not exclude .env files. If a developer adds environment variables (API keys, tokens, secrets) in a .env file during local development, they could accidentally be committed to the repository.

Affected File

.gitignore

Severity

Low — No .env files currently exist in the repo, but this is a preventive measure.

Suggested Fix

Add the following to .gitignore:

# Environment files
.env
.env.*
*.env

Context

The .mcp.json file already correctly references GITHUB_PERSONAL_ACCESS_TOKEN via environment variable interpolation (${...}), but without the gitignore exclusion, a .env file used by other tooling could slip through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    securitySecurity-related issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions