mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8b3ce2cb1e |
No files matched your search
@@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
VERSION := `git fetch --tags && git tag | sort -V | tail -1`
|
VERSION := `git fetch --tags && git tag | sort -V | tail -1`
|
||||||
PKG=github.com/zricethezav/gitleaks
|
PKG=github.com/zricethezav/gitleaks
|
||||||
LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
|
LDFLAGS=-ldflags "-X=github.com/zricethezav/gitleaks/v4/version.Version=$(VERSION)"
|
||||||
_LDFLAGS="github.com/zricethezav/gitleaks/v3/version.Version=$(VERSION)"
|
_LDFLAGS="github.com/zricethezav/gitleaks/v4/version.Version=$(VERSION)"
|
||||||
COVER=--cover --coverprofile=cover.out
|
COVER=--cover --coverprofile=cover.out
|
||||||
|
|
||||||
test-cover:
|
test-cover:
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ docker pull zricethezav/gitleaks
|
|||||||
#### Go
|
#### Go
|
||||||
Ensure `GO111MODULE=on` is set as an env var
|
Ensure `GO111MODULE=on` is set as an env var
|
||||||
```bash
|
```bash
|
||||||
go get github.com/zricethezav/gitleaks/v3@latest
|
go get github.com/zricethezav/gitleaks/v4@latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"path"
|
"path"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|||||||
+3
-3
@@ -10,9 +10,9 @@ import (
|
|||||||
"sort"
|
"sort"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
|
|
||||||
"github.com/sergi/go-diff/diffmatchpatch"
|
"github.com/sergi/go-diff/diffmatchpatch"
|
||||||
)
|
)
|
||||||
|
|||||||
+2
-2
@@ -12,8 +12,8 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
"github.com/sergi/go-diff/diffmatchpatch"
|
"github.com/sergi/go-diff/diffmatchpatch"
|
||||||
|
|||||||
+2
-2
@@ -9,8 +9,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"gopkg.in/src-d/go-git.v4"
|
"gopkg.in/src-d/go-git.v4"
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
|
|
||||||
"github.com/BurntSushi/toml"
|
"github.com/BurntSushi/toml"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ package config
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
"regexp"
|
"regexp"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
module github.com/zricethezav/gitleaks/v3
|
module github.com/zricethezav/gitleaks/v4
|
||||||
|
|
||||||
go 1.13
|
go 1.13
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -6,9 +6,9 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/audit"
|
"github.com/zricethezav/gitleaks/v4/audit"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
|
|
||||||
"github.com/google/go-github/github"
|
"github.com/google/go-github/github"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|||||||
+3
-3
@@ -4,9 +4,9 @@ import (
|
|||||||
"context"
|
"context"
|
||||||
"sync"
|
"sync"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/audit"
|
"github.com/zricethezav/gitleaks/v4/audit"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
|
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
"github.com/xanzy/go-gitlab"
|
"github.com/xanzy/go-gitlab"
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package hosts
|
package hosts
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -3,9 +3,9 @@ package hosts
|
|||||||
import (
|
import (
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -5,11 +5,11 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/audit"
|
"github.com/zricethezav/gitleaks/v4/audit"
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/hosts"
|
"github.com/zricethezav/gitleaks/v4/hosts"
|
||||||
"github.com/zricethezav/gitleaks/v3/manager"
|
"github.com/zricethezav/gitleaks/v4/manager"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
|
|
||||||
"github.com/hako/durafmt"
|
"github.com/hako/durafmt"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|||||||
+2
-2
@@ -13,8 +13,8 @@ import (
|
|||||||
"text/tabwriter"
|
"text/tabwriter"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
|
|
||||||
"github.com/hako/durafmt"
|
"github.com/hako/durafmt"
|
||||||
"github.com/mattn/go-colorable"
|
"github.com/mattn/go-colorable"
|
||||||
|
|||||||
@@ -3,8 +3,8 @@ package manager
|
|||||||
import (
|
import (
|
||||||
"crypto/rand"
|
"crypto/rand"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/zricethezav/gitleaks/v3/config"
|
"github.com/zricethezav/gitleaks/v4/config"
|
||||||
"github.com/zricethezav/gitleaks/v3/options"
|
"github.com/zricethezav/gitleaks/v4/options"
|
||||||
"io"
|
"io"
|
||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -7,7 +7,7 @@ import (
|
|||||||
"os/user"
|
"os/user"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/zricethezav/gitleaks/v3/version"
|
"github.com/zricethezav/gitleaks/v4/version"
|
||||||
|
|
||||||
"github.com/jessevdk/go-flags"
|
"github.com/jessevdk/go-flags"
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
|
|||||||
Reference in new issue
Block a user