@zedtech/zedkit-quality
Fail CI when secrets are tracked
Fail if a tracked `.env` (other than `.env.example`) or a private key / token pattern is in git.
alpha
Usage
At a glance
- Who: Teams that must never commit
.envfiles or high-signal credentials. - What: Fail if a tracked
.env(other than.env.example) or a private key / token pattern is in git. - Use when: As a CI hygiene step next to the artifact check.
- Avoid when: As a substitute for a full secret scanner (GitHub secret scanning, gitleaks) on history.
- See also: Fail CI when build artifacts are tracked, Keep .env complete without overwriting local values
Install
pnpm add @zedtech/zedkit-qualityLatest: 1.1.0 (via changesets).
Example
// package.json
{
"scripts": {
"check:secrets": "zedkit-check-no-secrets"
}
}Wraps: (none)