pre-commit
Automatically install pre-commit hooks for your npm modules.
Supply chain provenance
Status for the latest visible version.
Without SLSA provenance there is no cryptographic link between this tarball and the public source — the axios compromise (March 2026) relied on exactly this gap.
Maintainers
Keywords
Accepted risks
Findings the reviewer chose to accept rather than block on.
| Source | Rule | Reason | Accepted by | When |
|---|---|---|---|---|
| semgrep | semgrep:child-process-import | AI (semgrep): pre-commit is a git hook runner; spawning child processes to execute configured scripts is its core, documented functionality — not a risk for this package. | ai | |
| install-scripts | install-script:install | AI (install-scripts): pre-commit's install script installs git hooks into the consuming project — this is the package's core documented purpose and stable across all versions. | ai | |
| semgrep | semgrep:dynamic-require | AI (semgrep): The dynamic require loads the host project's package.json to read pre-commit config — a necessary and benign pattern for this tool, stable across versions. | ai |
Versions (showing 6 of 6)
| Version | Deps | Published |
|---|---|---|
| 2.0.0 | 2 / 3 | |
| 1.2.2 | 3 / 4 | |
| 1.1.3 | 2 / 4 | |
| 1.0.10 | 1 / 4 | |
| 1.0.2 | 1 / 4 | |
| 1.0.0 | 1 / 4 |
v2.0.0
1 findingPackage was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.2.2
2 findingsScript: node install.js
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.1.3
1 findingPackage was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.0.10
1 findingPackage was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.0.2
1 findingPackage was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.
v1.0.0
2 findingsThis version was published by a different npm account than previous versions on 2015-01-30. This could indicate a legitimate maintainer transition or an account compromise.
Package was published without Sigstore provenance. Consider requesting the maintainer enable provenance via CI/CD.