mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a37822dffd | ||
|
|
1c6b28aa61 | ||
|
|
f15b4e408b | ||
|
|
d5f9d2b5d2 |
No files matched your search
@@ -34,11 +34,16 @@ brew install gitleaks
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
Using the image from DockerHub:
|
#### DockerHub
|
||||||
```bash
|
```bash
|
||||||
docker pull zricethezav/gitleaks:latest
|
docker pull zricethezav/gitleaks:latest
|
||||||
docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] --source="/path" [OPTIONS]
|
docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] --source="/path" [OPTIONS]
|
||||||
```
|
```
|
||||||
|
#### ghrc.io
|
||||||
|
```bash
|
||||||
|
docker pull ghcr.io/zricethezav/gitleaks:latest
|
||||||
|
docker run -v ${path_to_host_folder_to_scan}:/path zricethezav/gitleaks:latest [COMMAND] --source="/path" [OPTIONS]
|
||||||
|
```
|
||||||
|
|
||||||
### From Source
|
### From Source
|
||||||
1. Download and install Go from https://golang.org/dl/
|
1. Download and install Go from https://golang.org/dl/
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ func GitLog(source string, logOpts string) (<-chan *gitdiff.File, error) {
|
|||||||
args = append(args, strings.Split(logOpts, " ")...)
|
args = append(args, strings.Split(logOpts, " ")...)
|
||||||
cmd = exec.Command("git", args...)
|
cmd = exec.Command("git", args...)
|
||||||
} else {
|
} else {
|
||||||
cmd = exec.Command("git", "-C", sourceClean, "log", "-p", "-U0", "--full-history", "--simplify-merges", "--show-pulls", "--all")
|
cmd = exec.Command("git", "-C", sourceClean, "log", "-p", "-U0", "--full-history", "--all")
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Debug().Msgf("executing: %s", cmd.String())
|
log.Debug().Msgf("executing: %s", cmd.String())
|
||||||
|
|||||||
Reference in new issue
Block a user