Empty Values
What it detects
Keys in .env that have no value assigned (KEY= or KEY="").
Example
Given .env:
APP_NAME=myappDB_HOST=localhostSECRET_KEY=API_TOKEN=envaudit reports:
Empty values ⚠ SECRET_KEY ⚠ API_TOKENWhy it matters
An empty value is different from a missing variable — the key exists, so your app won’t crash looking for it, but the empty string may cause unexpected behaviour:
- Authentication failures
- Empty API requests
- Silent feature disabling
When empty values are intentional
Some variables are legitimately empty (e.g. an optional feature toggle or a prefix that defaults to empty). In these cases, the warning can be safely ignored.
Suppressing in CI
In CI pipelines, .env values are often intentionally empty because secrets are injected at runtime. Use --ignore-empty to skip these warnings:
envaudit check --ci --no-color --ignore-empty