← Home

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.

SourceRuleReasonAccepted byWhen
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