diff --git a/pkg/commands/app.go b/pkg/commands/app.go index 8af7017d49..00f39e0077 100644 --- a/pkg/commands/app.go +++ b/pkg/commands/app.go @@ -6,7 +6,6 @@ import ( "fmt" "io" "os" - "strings" "github.com/spf13/cobra" "github.com/spf13/viper" @@ -122,11 +121,6 @@ func loadPluginCommands() []*cobra.Command { } func initConfig(configFile string) error { - // Configure environment variables - viper.SetEnvPrefix("trivy") // will be uppercased automatically - viper.SetEnvKeyReplacer(strings.NewReplacer("-", "_")) - viper.AutomaticEnv() - // Read from config viper.SetConfigFile(configFile) viper.SetConfigType("yaml")