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:
Richard Gomez authored and GitHub committed 2025-02-10 13:15:44 -06:00
1 parent c6424a6fc3
commit ae26eff464
6 files changed
+27 -26

No files matched your search

+1 -3
View File
@@ -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)