awslabs / awslabs/git-secrets

Feature Request: Add an option to specify the depth of `--scan-history`

Open
#186 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
13.4k
Forks
1.3k
PR merge metrics
No merged PRs in 30d

Description

`--scan-history` scans all revisions, but if the depth of the history is too large, it would take a long time to scan all revisions.
So how about adding an option to specify the depth of revisions.

For example,

```
$ git secrets --scan-history --scan-history-depth 10 .
```

Thank you.

Contributor guide

Open the contributing guide

Research direction

Start by locating the command-line handling for --scan-history and the code that traverses revisions. Trace how scan-history currently selects revisions, then check the existing CLI test coverage before defining the expected behavior. Done means the example --scan-history-depth 10 invocation limits scanning to the requested history depth.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
cli, security
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.