@@ -169,7 +169,7 @@ func TestCommand(t *testing.T) {
169169 },
170170 {
171171 Name : "Sarif with vulns" ,
172- Args : []string {"" , "source" , "--format" , "sarif" , "--config" , " ./testdata/osv-scanner-empty-config.toml" , "./testdata/ locks-many/package-lock.json" },
172+ Args : []string {"" , "source" , "--format" , "sarif" , "./testdata/locks-many-with-insecure /package-lock.json" },
173173 Exit : 1 ,
174174 },
175175 // output format: gh-annotations
@@ -180,13 +180,13 @@ func TestCommand(t *testing.T) {
180180 },
181181 {
182182 Name : "gh-annotations with vulns" ,
183- Args : []string {"" , "source" , "--format" , "gh-annotations" , "--config" , " ./testdata/osv-scanner-empty-config.toml" , "./testdata/ locks-many/package-lock.json" },
183+ Args : []string {"" , "source" , "--format" , "gh-annotations" , "./testdata/locks-many-with-insecure /package-lock.json" },
184184 Exit : 1 ,
185185 },
186186 // output format: markdown table
187187 {
188188 Name : "output format: markdown table" ,
189- Args : []string {"" , "source" , "--format" , "markdown" , "--config" , " ./testdata/osv-scanner-empty-config.toml" , "./testdata/ locks-many/package-lock.json" },
189+ Args : []string {"" , "source" , "--format" , "markdown" , "./testdata/locks-many-with-insecure /package-lock.json" },
190190 Exit : 1 ,
191191 },
192192 // output format: cyclonedx 1.4
@@ -280,13 +280,13 @@ func TestCommand(t *testing.T) {
280280 // broad config file that overrides a whole ecosystem
281281 {
282282 Name : "config file can be broad" ,
283- Args : []string {"" , "source" , "--config=./testdata/osv-scanner-composite-config.toml" , "--licenses=MIT" , "-L" , "osv-scanner:./testdata/locks-insecure/osv-scanner-flutter-deps.json" , "./testdata/locks-many" , "./testdata/locks-insecure" , "./testdata/maven-transitive" },
283+ Args : []string {"" , "source" , "--config=./testdata/osv-scanner-composite-config.toml" , "--licenses=MIT" , "-L" , "osv-scanner:./testdata/locks-insecure/osv-scanner-flutter-deps.json" , "./testdata/locks-many-with-insecure " , "./testdata/locks-insecure" , "./testdata/maven-transitive" },
284284 Exit : 1 ,
285285 },
286286 // ignored vulnerabilities and packages without a reason should be called out
287287 {
288288 Name : "ignores without reason should be explicitly called out" ,
289- Args : []string {"" , "source" , "--config=./testdata/osv-scanner-reasonless-ignores-config.toml" , "./testdata/locks-many/package-lock.json" , "./testdata/locks-many/composer.lock" },
289+ Args : []string {"" , "source" , "--config=./testdata/osv-scanner-reasonless-ignores-config.toml" , "./testdata/locks-many-with-insecure /package-lock.json" , "./testdata/locks-many/composer.lock" },
290290 Exit : 0 ,
291291 },
292292 // invalid config file
@@ -879,8 +879,8 @@ func TestCommand_LocalDatabases(t *testing.T) {
879879 },
880880 {
881881 Name : "all supported lockfiles in the directory should be checked" ,
882- Args : []string {"" , "source" , "--offline" , "--download-offline-databases" , "./testdata/locks-many" },
883- Exit : 0 ,
882+ Args : []string {"" , "source" , "--offline" , "--download-offline-databases" , "./testdata/locks-many-with-insecure " },
883+ Exit : 1 ,
884884 },
885885 {
886886 Name : "all supported lockfiles in the directory should be checked" ,
@@ -948,7 +948,7 @@ func TestCommand_LocalDatabases_AlwaysOffline(t *testing.T) {
948948 tests := []testcmd.Case {
949949 {
950950 Name : "a bunch of different lockfiles and ecosystem" ,
951- Args : []string {"" , "source" , "--offline" , "./testdata/locks-requirements" , "./testdata/locks-many" },
951+ Args : []string {"" , "source" , "--offline" , "./testdata/locks-requirements" , "./testdata/locks-many-with-insecure " },
952952 Exit : 127 ,
953953 },
954954 }
@@ -1010,12 +1010,12 @@ func TestCommand_Licenses(t *testing.T) {
10101010 },
10111011 {
10121012 Name : "Vulnerabilities and license summary" ,
1013- Args : []string {"" , "source" , "--licenses" , "--config= ./testdata/osv-scanner-empty-config.toml" , "./testdata/ locks-many/package-lock.json" },
1013+ Args : []string {"" , "source" , "--licenses" , "./testdata/locks-many-with-insecure /package-lock.json" },
10141014 Exit : 1 ,
10151015 },
10161016 {
10171017 Name : "Vulnerabilities and license violations with allowlist" ,
1018- Args : []string {"" , "source" , "--licenses=MIT" , "--config= ./testdata/osv-scanner-empty-config.toml" , "./testdata/ locks-many/package-lock.json" },
1018+ Args : []string {"" , "source" , "--licenses=MIT" , "./testdata/locks-many-with-insecure /package-lock.json" },
10191019 Exit : 1 ,
10201020 },
10211021 {
@@ -1025,7 +1025,7 @@ func TestCommand_Licenses(t *testing.T) {
10251025 },
10261026 {
10271027 Name : "Vulnerabilities and all license violations allowlisted" ,
1028- Args : []string {"" , "source" , "--licenses=Apache-2.0" , "--config= ./testdata/osv-scanner-empty-config.toml" , "./testdata/ locks-many/package-lock.json" },
1028+ Args : []string {"" , "source" , "--licenses=Apache-2.0" , "./testdata/locks-many-with-insecure /package-lock.json" },
10291029 Exit : 1 ,
10301030 },
10311031 {
0 commit comments