Description
envradar is a command-line tool and reusable GitHub Action that finds environment-variable drift in a repository. It scans source code in Python, JavaScript, TypeScript, Go, Ruby, Java, Kotlin, Rust, PHP and .NET-style projects, along with .env files, Docker Compose files and GitHub Actions workflows, and compares what they use with what is documented. It reports variables that are used in code but missing from .env.example, variables documented but no longer used, variables that exist locally but are not documented for new contributors, and secrets that only appear in CI pipelines. It reads .env.example, .env.sample, .env.template and local .env files, detects ${VAR} placeholders in Compose files, and detects secrets and vars references in workflows. Output can be plain text, Markdown or JSON. A small envradar.yml file can ignore variables and set placeholder values. In strict mode it exits with a non-zero code, so it can block a merge. As a GitHub Action it adds annotations pinned to files and lines, and writes a job summary with counts and a markdown report.…
Highlights
- Finds undocumented, unused and drifting env vars
- Scans many languages, Compose files and GitHub workflows
- Plain text, Markdown or JSON output
- GitHub Action with annotations and a job summary
- Strict mode to block merges when drift is found
Ratings & Reviews
No ratings yet
Be the first to rate Envradar.
People also visit
Envmanager
Manage your .env files with ease, across teams, workplaces and services

code-review-expert
Expert code review of current git changes with a senior engineer lens

gha-security-review
GitHub Actions security review for workflow exploitation vulnerabilities
Envradar FAQ
What does envradar check?
It compares the environment variables your code uses with those documented in .env example files, and flags variables that are unused, undocumented or only used in CI.
How do I run it?
Run it as a command-line tool, or add it to a GitHub workflow as a reusable action. For the action, tag a release such as v1 and reference it from other repositories.
What output formats does it support?
Plain text, Markdown and JSON. As a GitHub Action it also adds annotations pinned to specific files and lines and writes a job summary.
Can it block a merge?
Yes. Strict mode exits with a non-zero code when drift is found, so a CI job can fail the pull request.
How do I ignore some variables?
Add an envradar.yml config file that lists ignored variables and placeholder values.
What are the best Envradar alternatives?
Popular alternatives to Envradar include Envmanager, SHIP SAFE and Secure Repo. See all Envradar alternatives












