Find, verify, and analyze leaked credentials
Go credentialsdevsecopsdynamic-analysisprecommitscanningsecretsecret-managementsecretssecuritysecurity-toolstrufflehogverification
[analyze] Bandaid solution for occasional slow startups (#3191)
Miccah7730fc826b89
diff --git a/main.go b/main.goindex 183ef961f..62375ebf2 100644--- a/main.go+++ b/main.go@@ -13,7 +13,6 @@ import ("strings""sync""syscall"- "time""github.com/alecthomas/kingpin/v2""github.com/felixge/fgprof"@@ -338,9 +337,6 @@ func run(state overseer.State) {} else {logger.Info("cleaned temporary artifacts")}-- time.Sleep(time.Second * 10)- logger.Info("10 seconds elapsed. Forcing shutdown.")os.Exit(0)}()diff --git a/pkg/analyzer/tui/keytype.go b/pkg/analyzer/tui/keytype.goindex ffe63e0ee..daf840545 100644--- a/pkg/analyzer/tui/keytype.go+++ b/pkg/analyzer/tui/keytype.go@@ -86,3 +86,11 @@ func (i KeyTypeItem) ID() string { return string(i) }func (i KeyTypeItem) Title() string { return string(i) }func (i KeyTypeItem) Description() string { return "" }func (i KeyTypeItem) FilterValue() string { return string(i) }++func init() {+ // Preload HasDarkBackground call. For some reason, if we don't do+ // this, the TUI can take a noticeably long time to start. We should+ // investigate further, but this is a good-enough bandaid for now.+ // See: https://github.com/charmbracelet/lipgloss/issues/73+ _ = lipgloss.HasDarkBackground()+}