Skip to content

Support scanning plain directories #1

Description

@andrew

secrets scan takes a git repository and walks every blob in its history. The detector itself operates on individual blobs, so it could also cover inputs that are not git repositories: an extracted tarball, a build workspace, a vendored directory.

Proposal: a mode that walks a directory tree and runs each file through the same detection path, skipping the commit attribution layer, e.g. secrets scan --dir PATH. Path filters and --max-blob-size apply as they do today. Alongside the CLI, an exported entry point accepting an fs.FS would let other Go programs run the detector against non-git inputs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions