8000 gitleaks dir [path] argument does not allow multiple values or globs · Issue #1888 · gitleaks/gitleaks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
gitleaks dir [path] argument does not allow multiple values or globs #1888
Open
@ssbarnea

Description

@ssbarnea

Describe the bug

It seems that gitleaks dir argument 'path' does not allow multiple values or use of globs.

When passing more than one argument, gitleaks dir silently tries to run on ., which makes this count more as a bug than a feature request.

To Reproduce

gitleaks dir foo bar

# more advanced usage with patterns
gitleaks dir 'foo/**/*.log' bar

Expected behavior

  • Be able to allow multiple path arguments
  • Be able to expand globs, or at least to fail if globs are passed

Additional context

The tool itself should be able to expand globs and this is because otherwise its usage cross platform would be highly impacted as not all shells are able to expand the same way. Many other similar tools do have their own glob processing implemented in order to make them more portable.

cc @zricethezav

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0