Skip to content

Pre-commit hooks are not automatically activated #75

@niklashaug

Description

@niklashaug

I still need to test locally if I get an error when trying to commit a secret. I just did that but got no error. Not sure whether the pre-commit hooks actually run. All I need for Husky is to npm install, right?

Originally posted by @niklashaug in #72 (comment)

I've looked into this a bit and found out that the ignore-scripts probably prohibit the prepare script which sets up gitleaks from ever running.
Probably the only thing that can be done is to document that this needs to be run manually once. I'm wondering if there is any better way to enforce it so you won't forget running this in a new codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions