mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 04:34:46 +01:00
feat(git): disable link generation (#1748)
Add an option to disable link creation. If there are any weird edge cases, it shouldn't block scanning
This commit is contained in:
1 parent
c6424a6fc3
commit
ae26eff464
6 files changed
+27
-26
No files matched your search
+1
-3
@@ -74,9 +74,7 @@ func runGit(cmd *cobra.Command, args []string) {
|
||||
if scmPlatform, err = scm.PlatformFromString(mustGetStringFlag(cmd, "platform")); err != nil {
|
||||
logging.Fatal().Err(err).Send()
|
||||
}
|
||||
if remote, err = detect.NewRemoteInfo(scmPlatform, source); err != nil {
|
||||
logging.Fatal().Err(err).Msg("failed to scan Git repository")
|
||||
}
|
||||
remote = detect.NewRemoteInfo(scmPlatform, source)
|
||||
}
|
||||
|
||||
findings, err = detector.DetectGit(gitCmd, remote)
|
||||
|
||||
Reference in new issue
Block a user