![[OpenSource] GitHub Action that auto-commits .env.example and fails the PR if you forgot to document a new env var](https://preview.redd.it/ly6csiyu1zvg1.gif?s=3730f97655759e8a4ea3f04d295dff023bda3ee2)
[OpenSource] GitHub Action that auto-commits .env.example and fails the PR if you forgot to document a new env var
Keeping .env.example in sync with actual code usage is a manual chore that everyone forgets. I released envsniff to treat documentation-of-vars as a build requirement.
Why use it?
- Multi-language support: Scans JS, Go, Python, and even Shell scripts.
- Zero Config: The default setup finds most standard usage patterns.
- Auto-remediation: You can set
commit: trueto let the Action maintain the example file for you.
​
- uses: harish124/envsniff@v0.1.0
with:
fail-on-drift: true
commit: true
Check it out here: https://github.com/harish124/envsniff
Pls drop a star on Github
u/Outrageous_Ranger812 — 14 days ago