Loading...
Loading...
Compare original and translation side by side
brew install gitleaksgitleaks versionbrew install gitleaksgitleaks versiongitleaks detect --source=<path> --no-git --report-format=json --report-path=gitleaks-results.jsongitleaks detect --source=<path> --report-format=json --report-path=gitleaks-results.json--verbose--config=<path-to-.gitleaks.toml>gitleaks protect --staged --report-format=json| # | Rule | Secret (redacted) | File:Line | Commit | Author | Date |
|---|------|--------------------|-----------|--------|--------|------|IMPORTANT: Always redact secret values — show only first 4 and last 2 characters.
.env.gitleaks.tomlgitleaks detect --source=<path> --no-git --report-format=json --report-path=gitleaks-results.jsongitleaks detect --source=<path> --report-format=json --report-path=gitleaks-results.json--verbose--config=<path-to-.gitleaks.toml>gitleaks protect --staged --report-format=json| 序号 | 规则 | 密钥(已脱敏) | 文件:行号 | 提交记录 | 作者 | 日期 |
|---|------|--------------------|-----------|--------|--------|------|重要提示: 始终对密钥值进行脱敏处理——仅显示前4位和后2位字符。
.env.gitleaks.toml