Secretlint
Secretlint is a free, open-source linting tool that scans projects for credentials to help prevent them from being committed to Git.
What Secretlint is
Secretlint is a free, open-source linting tool that scans projects for credentials to help prevent them from being committed to Git. Its command line can scan files, glob patterns, or standard input. Detection rules are separate modules, and custom rules can be packaged as npm packages. Secret values are masked in lint error messages by default, helping reduce their exposure in terminal output and logs. The project documents pre-commit setups with Husky and lint-staged, pre-commit, and Git hooks, as well as GitHub Actions runs and pull-request annotations. Other listed integrations include Mega-Linter, SARIF formatting, a macOS clipboard app, and a browser extension. The extension works with Chrome and Firefox DevTools to help developers notice credentials in requests and responses. Secretlint can be installed with Node.js, run in Docker, or used as a single-executable binary without Node.js. The Node.js installation instructions require version 22 or later. Secretlint does not automatically fix detected secrets, though a formatter can mask secrets in an input file. It is MIT-licensed and supports Linux, macOS, Windows, and extensions.
Good
- Scans files, glob patterns, and standard input
- Masks secret values in lint errors by default
- Documents pre-commit and GitHub Actions integrations
- Supports custom rules as npm packages
- Can run without Node.js as a binary
Watch out
- Does not automatically fix detected secrets
- Node.js installation requires version 22 or later
Who it suits
Secretlint suits developers who want to scan project files or Git workflows for credentials, including in CI and pull requests. Its modular rules may also appeal to teams that need custom detection rules.
Verdict
Secretlint offers several ways to fit credential scanning into development workflows, with masked errors and support for custom rules. Users should plan to handle detected credentials themselves, since automatic fixing is not provided.
Plans and prices
From Secretlint's own pricing page, checked 9 Oct 2026.
| Plan | Price | What it gives you |
|---|---|---|
| Secretlint | Free | MIT-licensed project; no paid plans or pricing stated |
The facts
Each one read from Secretlint's own pages, with the date it was checked.
What it does
- Additional integrations
- The README lists Mega-Linter, a browser extension, a macOS clipboard app, and SARIF formatter support.checked 9 Oct 2026
- CI integration
- The documentation shows running Secretlint in GitHub Actions and emitting pull request annotations with the GitHub formatter.checked 9 Oct 2026
- Installation
- Secretlint can be installed with Node.js, run in Docker, or used as a single-executable binary that does not require Node.js.checked 9 Oct 2026
- License
- The repository states that Secretlint is licensed under MIT.checked 9 Oct 2026
- Notable limitation
- Secretlint does not automatically fix detected secrets, although its mask-result formatter can mask secrets in an input file.checked 9 Oct 2026
- Pre-commit
- The project documents pre-commit integrations with Husky and lint-staged, pre-commit, and Git hooks.checked 9 Oct 2026
- Purpose
- Secretlint is a pluggable linting tool to find credentials in projects and prevent committing them.checked 9 Oct 2026
- Rules
- Rules are separate modules, and users can create custom rules as npm packages.checked 9 Oct 2026
- Runtime requirement
- The Node.js installation instructions require Node.js 22 or later.checked 9 Oct 2026
- Scanning
- The CLI scans files or glob patterns and supports stdin input.checked 9 Oct 2026
- Secret masking
- Secret values are masked in lint error messages by default to help prevent exposure in logs and terminal output.checked 9 Oct 2026
- Support
- The README directs users to create a GitHub issue for bugs and feature requests.checked 9 Oct 2026
Where it runs
- Browser extension
- The WebExtension integrates with Chrome and Firefox DevTools to help web developers notice credentials in requests and responses.checked 9 Oct 2026
Alternatives to Secretlint
- 1

DeepSource
Free planWebAPILinuxmacOS8.0From $30 a month - 2

Endor Labs
Free planWebAPIExtensionLinux7.4Free plan - 3

Vooda AI
Free planWebAPILinuxmacOS6.9Free plan - 4

Arnica Secrets Security
Free planWebAPISelf-hosted6.6From $300 a year - 5

GitGuardian
Free planWebAPILinuxmacOS6.6Free plan - 6
detect-secrets
Free planLinuxmacOSSelf-hostedWindows6.5Free plan
