Skip to content

Detect secrets scans entire codebase every time? #935

@oerp-odoo

Description

@oerp-odoo

Am I doing something wrong here? I have pre-commit hook setup like this:

  - repo: https://github.com/Yelp/detect-secrets
    rev: v1.5.0
    hooks:
      - id: detect-secrets
        args:
          - --baseline=.secrets.baseline

But every time I commit, it seems like it scans whole codebase, which is very slow (as we have large codebase). I want it to scan only changed files. Is there a way to do that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions