pre-commit
Automatically install pre-commit hooks for your npm modules.
6
Versions
MIT
License
Yes
Install Scripts
Missing
Provenance
Supply chain provenance
Status for the latest visible version.
No SLSA provenance
npm registry signatures
gitHead linked
Without SLSA provenance there is no cryptographic link between this tarball and the public source, so a manually published version cannot be tied back to a reviewed commit.
Maintainers
swaagiev13rdeden
Keywords
githooksnpmpre-commitprecommitruntestdevelopment
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 |