recover on panic in patch generation, full filepath for report, version message if not built with LDFLAGS

This commit is contained in:
zach rice committed 2019-11-23 09:50:16 -05:00
1 parent b6f726654e
commit cfac551ab8
9 files changed
+80 -53

No files matched your search

+7 -5
View File
@@ -2,18 +2,20 @@ package hosts
import (
"context"
"github.com/google/go-github/github"
log "github.com/sirupsen/logrus"
"strconv"
"strings"
"sync"
"github.com/zricethezav/gitleaks/audit"
"github.com/zricethezav/gitleaks/manager"
"github.com/zricethezav/gitleaks/options"
"github.com/google/go-github/github"
log "github.com/sirupsen/logrus"
"golang.org/x/oauth2"
"gopkg.in/src-d/go-git.v4"
"gopkg.in/src-d/go-git.v4/plumbing"
"gopkg.in/src-d/go-git.v4/plumbing/object"
"strconv"
"strings"
"sync"
)
// Github wraps a github client and manager. This struct implements what the Host interface defines.