mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 05:24:22 +01:00
updating travis
This commit is contained in:
1 parent
660350c9b1
commit
633e06a7c7
2 files changed
+3
-2
No files matched your search
@@ -4,7 +4,7 @@ test:
|
|||||||
go get golang.org/x/lint/golint
|
go get golang.org/x/lint/golint
|
||||||
go fmt
|
go fmt
|
||||||
golint
|
golint
|
||||||
go test --race --cover -run=Test$
|
go test --race --cover github.com/zricethezav/gitleaks/src
|
||||||
deploy:
|
deploy:
|
||||||
@echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
|
@echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin
|
||||||
docker build -f Dockerfile -t $(REPO):$(TAG) .
|
docker build -f Dockerfile -t $(REPO):$(TAG) .
|
||||||
|
|||||||
@@ -10,7 +10,8 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
report, err := gitleaks.Run(gitleaks.ParseOpts())
|
report, err := gitleaks.Run(gitleaks.ParseOpts())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal(err)
|
log.Error(err)
|
||||||
|
os.Exit(gitleaks.ErrExit)
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(report.Leaks) != 0 {
|
if len(report.Leaks) != 0 {
|
||||||
|
|||||||
Reference in new issue
Block a user