grab/secret-scanner is a open-source project on GitHub, written primarily in Go. It has 56 stars.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
To persist the various Git provider tokens, you can add them into your .bash_profile or create a .env file. See .env.example.
Skip Files
You can define paths to be excluded from scanning by defining them in a comma separated format in .env file.
SKIP_EXT defines the file extensions to be excluded
SKIP_PATHS defines the paths/files to be excluded if the path matches one of the patterns defined in the list
SKIP_TEST_PATHS defines any test directories/files that you would like to skip. It is being kept separately from SKIP_PATHS because sometimes it may be useful to scan the test files as well. You can toggle to scan test files by giving -skip-tests=false in the CLI.
Usage
For bool CLI flags, use = between key-val pair. Eg -ui=false
Basic
The most basic usage requires a list of Github repository identifiers in the form of org/repo.
./secret-scanner -repos jquery/jquery
To scan repositories in other Git providers, simply specify the Git provider name.
For Gitlab, provide the project ID instead of org/repo.
In instances where a repository contains multiple projects (i.e monorepo), or you simply want to scan specific sub-directory, you can do so by providing sub-dir.
The output file will contain the lines containing the potential secrets. In circumstances where you do not want to expose them, you can specify -log-secret=false
Scan State
By default, no scan state is being kept, meaning every scan on the same repository will start afresh.
If scan state is enabled, the scanner will save the latest scan session and commit hash in JSON format. From the next scan onwards for the same repository,the scanner will only scan changes since the last saved commit hash.
The default location of scan state JSON file is in ~/.secret-scanner/.
-baseurl string
Specify Git provider base URL
-commit-depth int
Number of repository commits to process (default 500)
-debug
Print debugging information
-env string
.env file path containing Git provider base URLs and tokens
-git string
Name of git provider (Eg. github, gitlab, bitbucket) (default "github")
-load string
Load session file
-dir string
Specify the local git repo path to scan
-log-secret
If true, the matched secret will be included in output file (default true)
-output string
Save session to file
-repos string
Comma-separated list of repos to scan
-sub-dir string
Sub-directory within the repository to scan
-quiet
Suppress all output except for errors
-skip-tests
Skips possible test contexts (default true)
-use-state
If use-state is off, every scan will be treated as a brand new scan.
-threads int
Number of concurrent threads (default number of logical CPUs)
-token string
Specify Git provider token
Credits
Project is built upon the ground work laid in Gitrob by Michael Henriksen.
No homepage URL was recorded for grab/secret-scanner in TopGit's last sync. The README tab above frequently contains screenshots and demo links, or check the repository description on GitHub.
Is grab/secret-scanner open source?
Yes — grab/secret-scanner ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/grab/secret-scanner.
What is grab/secret-scanner?
grab/secret-scanner (grab/secret-scanner) is a Go project tracked by TopGit. The repository has 56 GitHub stars at the time of our last sync.
What license does grab/secret-scanner use?
grab/secret-scanner is released under the MIT license. Always verify the LICENSE file directly on GitHub for the authoritative terms — license strings can be edited out of sync with a project's actual stance.
Where do I read more about grab/secret-scanner?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/grab/secret-scanner is the definitive source.
Read full README in the tab above.
Want a second opinion on secret-scanner?
Ask an AI that can read this page — one click and you get its take on secret-scanner.