File tree Expand file tree Collapse file tree
cmd/osv-scanner/scan/source/__snapshots__ Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5904,13 +5904,13 @@ id = "GHSA-whgm-jr23-g3j9"
59045904---
59055905
59065906[TestCommand_UpdateConfigIgnores_All/deep - 7]
5907- [[IgnoredVulns]]
5908- id = "GHSA-whgm-jr23-g3j9"
5909-
59105907[[PackageOverrides]]
59115908name = "ajv"
59125909ignore = true
59135910
5911+ [[IgnoredVulns]]
5912+ id = "GHSA-whgm-jr23-g3j9"
5913+
59145914---
59155915
59165916[TestCommand_UpdateConfigIgnores_All/deep - 8]
@@ -6060,13 +6060,13 @@ id = "GHSA-2g4f-4pwh-qvx6"
60606060---
60616061
60626062[TestCommand_UpdateConfigIgnores_All/deep_with_no_configs - 7]
6063- [[IgnoredVulns]]
6064- id = "GHSA-whgm-jr23-g3j9"
6065-
60666063[[PackageOverrides]]
60676064name = "ajv"
60686065ignore = true
60696066
6067+ [[IgnoredVulns]]
6068+ id = "GHSA-whgm-jr23-g3j9"
6069+
60706070---
60716071
60726072[TestCommand_UpdateConfigIgnores_All/deep_with_no_configs - 8]
@@ -6276,13 +6276,13 @@ id = "GHSA-whgm-jr23-g3j9"
62766276---
62776277
62786278[TestCommand_UpdateConfigIgnores_All/deep_with_removed_config - 7]
6279- [[IgnoredVulns]]
6280- id = "GHSA-whgm-jr23-g3j9"
6281-
62826279[[PackageOverrides]]
62836280name = "ajv"
62846281ignore = true
62856282
6283+ [[IgnoredVulns]]
6284+ id = "GHSA-whgm-jr23-g3j9"
6285+
62866286---
62876287
62886288[TestCommand_UpdateConfigIgnores_All/deep_with_removed_config - 8]
Original file line number Diff line number Diff line change @@ -16,9 +16,9 @@ import (
1616var OSVScannerConfigName = "osv-scanner.toml"
1717
1818type Config struct {
19- IgnoredVulns []* IgnoreEntry `toml:"IgnoredVulns,omitempty"`
20- PackageOverrides []PackageOverrideEntry `toml:"PackageOverrides,omitempty"`
2119 GoVersionOverride string `toml:"GoVersionOverride,omitempty"`
20+ PackageOverrides []PackageOverrideEntry `toml:"PackageOverrides,omitempty"`
21+ IgnoredVulns []* IgnoreEntry `toml:"IgnoredVulns,omitempty"`
2222 // The path to config file that this config was loaded from,
2323 // set by the scanner after having successfully parsed the file
2424 LoadPath string `toml:"-"`
You can’t perform that action at this time.
0 commit comments