Gitleaks-readme-2.sh
· 506 B · Bash
Brut
# MacOS
brew install gitleaks
# Docker (DockerHub)
docker pull zricethezav/gitleaks:latest
docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]
# Docker (ghcr.io)
docker pull ghcr.io/gitleaks/gitleaks:latest
docker run -v ${path_to_host_folder_to_scan}:/path ghcr.io/gitleaks/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH]
# From Source (make sure `go` is installed)
git clone https://github.com/gitleaks/gitleaks.git
cd gitleaks
make build
1 | # MacOS |
2 | brew install gitleaks |
3 | |
4 | # Docker (DockerHub) |
5 | docker pull zricethezav/gitleaks:latest |
6 | docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH] |
7 | |
8 | # Docker (ghcr.io) |
9 | docker pull ghcr.io/gitleaks/gitleaks:latest |
10 | docker run -v ${path_to_host_folder_to_scan}:/path ghcr.io/gitleaks/gitleaks:latest [COMMAND] [OPTIONS] [SOURCE_PATH] |
11 | |
12 | # From Source (make sure `go` is installed) |
13 | git clone https://github.com/gitleaks/gitleaks.git |
14 | cd gitleaks |
15 | make build |