diff --git a/pkg/config/config.go b/pkg/config/config.go index 9eb2653d025..2a9acf703f9 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -31,8 +31,10 @@ type ConfigManager struct { type Config struct { IgnoredVulns []IgnoreEntry `toml:"IgnoredVulns"` PackageOverrides []PackageOverrideEntry `toml:"PackageOverrides"` - LoadPath string `toml:"LoadPath"` GoVersionOverride string `toml:"GoVersionOverride"` + // The path to config file that this config was loaded from, + // set by the scanner after having successfully parsed the file + LoadPath string `toml:"-"` } type IgnoreEntry struct {