u/Outrageous_Ranger812

[OpenSource] GitHub Action that auto-commits .env.example and fails the PR if you forgot to document a new env var
▲ 10 r/cicd+1 crossposts

[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: true to 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