暫無描述

Zachary Rice 0a209b60a5 typo 7 年之前
vendor fad98cbde2 Single commit repo (#95) 7 年之前
.travis.yml 1f80d14f3f Gitleaks v1.0.0 (#75) 7 年之前
CHANGELOG.md fe8c6271f2 panic plan (#99) 7 年之前
CONTRIBUTING.md 0a209b60a5 typo 7 年之前
Dockerfile 8a76e0af27 Update Go docker version 7 年之前
Gopkg.lock fad98cbde2 Single commit repo (#95) 7 年之前
Gopkg.toml fad98cbde2 Single commit repo (#95) 7 年之前
LICENSE.md d482577e47 copyleft 7 年之前
Makefile 3faec00bf9 Max go (#98) 7 年之前
README.md 93669f1ee8 Csv (#96) 7 年之前
gitleaks.toml e8851c1f99 Update description to reflect regex 7 年之前
gitleaks_test.go 3faec00bf9 Max go (#98) 7 年之前
main.go fe8c6271f2 panic plan (#99) 7 年之前

README.md

gitleaks

Travis

Audit git repos for secrets

Powered by src-d's go-git

Installing

go get -u github.com/zricethezav/gitleaks

Or download from release binaries here

Usage and Options

Usage:
  gitleaks [OPTIONS]

Application Options:
  -r, --repo=          Repo url to audit
      --github-user=   User url to audit
      --github-org=    Organization url to audit
      --github-url=    GitHub API Base URL, use for GitHub Enterprise. Example: https://github.example.com/api/v3/ (default: https://api.github.com/)
  -p, --private        Include private repos in audit
  -b, --branch=        branch name to audit (defaults to HEAD)
  -c, --commit=        sha of commit to stop at
      --repo-path=     Path to repo
      --owner-path=    Path to owner directory (repos discovered)
      --max-go=        Maximum number of concurrent go-routines gitleaks spawns
      --disk           Clones repo(s) to disk
      --all-refs       run audit on all refs
      --single-search= single regular expression to search for
      --config=        path to gitleaks config
      --ssh-key=       path to ssh key
  -l, --log=           log level
  -v, --verbose        Show verbose output from gitleaks audit
      --report=        path to write report file
      --csv            report output to csv
      --redact         redact secrets from log messages and report
      --version        version number

Help Options:
  -h, --help           Show this help message

Exit Codes

1: leaks present
0: no leaks

Additional Examples and Explanations

Check the wiki here

If you find a valid leak in a repo

Please read this Github article on removing sensitive data from a repository to remove the sensitive information from your history.

Run me with docker

Simply run docker run --rm --name=gitleaks zricethezav/gitleaks --help