Được TopGit lập chỉ mục từ metadata GitHub: grab/secret-scanner có 56 sao, viết chủ yếu bằng Go.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/grab/secret-scanner là nguồn chính thức.
grab/secret-scanner có phải mã nguồn mở không?
Có — grab/secret-scanner phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/grab/secret-scanner.
grab/secret-scanner có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho grab/secret-scanner. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
grab/secret-scanner dùng license gì?
grab/secret-scanner phát hành theo license MIT. Nên mở file LICENSE trên GitHub để xác nhận — license metadata đôi khi lệch với thực tế dự án.
grab/secret-scanner là gì?
grab/secret-scanner (grab/secret-scanner) là dự án Go TopGit theo dõi. Tính tới lần đồng bộ gần nhất, repo có 56 sao.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc secret-scanner có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về secret-scanner.