Skip to the content
Know your tech before you buy it. Makers: get listed from $49/mo

Secretlint

github.com

  • Free plan
  • Windows
  • macOS
  • Linux
  • Browser extension
7.4 Club score Visit github.com

What Secretlint is

Secretlint is a free, MIT-licensed linting tool that detects credentials in projects and helps prevent them reaching Git commits. Its command-line interface scans files, glob patterns or standard input, while separate rule modules allow custom rules packaged as npm packages. Secret values are masked in lint errors by default, reducing exposure in terminals and logs. Documented pre-commit integrations include Husky and lint-staged, pre-commit and Git hooks. GitHub Actions can run scans and emit pull-request annotations with the GitHub formatter. The project also lists Mega-Linter, SARIF formatting, a macOS clipboard app and a browser extension. The WebExtension connects to Chrome and Firefox DevTools to help developers notice credentials in requests and responses. Installation options include Node.js, Docker or a single executable that does not require Node.js. The Node.js route requires version 22 or later. Secretlint does not automatically fix detected secrets, although its mask-result formatter can mask values in an input file. Bug and feature requests go through GitHub issues.

Who it suits

It suits developers and teams adding secret detection to local, pre-commit, pull-request or CI/CD workflows. Its modular rules also fit projects needing custom credential patterns.

Good to know, and what to watch

  • Free MIT-licensed project
  • Scans files, globs and standard input
  • Custom rules can be npm packages
  • Pre-commit and GitHub Actions integrations
  • Masks secrets in lint errors
  • Does not automatically fix detected secrets
  • Node.js installation requires version 22 or later
  • Requires separate setup for integrations
  • Support is directed through GitHub issues

Secretlint

Free

Open source

The verdict

Secretlint provides configurable credential scanning across development and CI workflows, with masking to reduce accidental exposure. Teams should plan remediation separately because detection does not remove secrets automatically.

What the maker publishes

Additional integrations
The README lists Mega-Linter, a browser extension, a macOS clipboard app, and SARIF formatter support. source
Browser extension
The WebExtension integrates with Chrome and Firefox DevTools to help web developers notice credentials in requests and responses. source
CI integration
The documentation shows running Secretlint in GitHub Actions and emitting pull request annotations with the GitHub formatter. source
Installation
Secretlint can be installed with Node.js, run in Docker, or used as a single-executable binary that does not require Node.js. source
License
The repository states that Secretlint is licensed under MIT. source
Notable limitation
Secretlint does not automatically fix detected secrets, although its mask-result formatter can mask secrets in an input file. source
Pre-commit
The project documents pre-commit integrations with Husky and lint-staged, pre-commit, and Git hooks. source
Purpose
Secretlint is a pluggable linting tool to find credentials in projects and prevent committing them. source
Rules
Rules are separate modules, and users can create custom rules as npm packages. source
Runtime requirement
The Node.js installation instructions require Node.js 22 or later. source
Scanning
The CLI scans files or glob patterns and supports stdin input. source
Secret masking
Secret values are masked in lint error messages by default to help prevent exposure in logs and terminal output. source
Support
The README directs users to create a GitHub issue for bugs and feature requests. source

Checked against the maker's pages on 9 Oct 2026.