harish124/envsniff
Scan your codebase for environment variables and keep .env.example in sync automatically.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| path | Directory to scan. Defaults to the repository root. | no | . |
| commit | Commit the updated .env.example back to the branch when changes are detected. | no | true |
| fail-on-drift | Exit with a non-zero code when new undocumented variables are found (drift detected). Useful for blocking merges. | no | false |
| commit-message | Commit message used when committing .env.example changes. | no | chore: sync .env.example via envsniff |
| python-version | Python version used to install and run envsniff. | no | 3.12 |
Outputs
| name | description |
|---|---|
| new-vars | Comma-separated list of newly discovered environment variables not yet in .env.example. |
| stale-vars | Comma-separated list of variables present in .env.example but no longer found in code. |
| scanned-files | Number of source files scanned. |
| drift-detected | true if new undocumented variables were found, false otherwise. |