@@ -144,18 +144,18 @@ func TestRun(t *testing.T) {
144
144
wantStdout : `
145
145
Scanning dir ./fixtures/sbom-insecure/postgres-stretch.cdx.xml
146
146
Scanned %%/fixtures/sbom-insecure/postgres-stretch.cdx.xml as CycloneDX SBOM and found 136 packages
147
- +-------------------------------------+-----------+---------+------------------------------------+-------------------------------------------------+
148
- | OSV URL (ID IN BOLD) | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
149
- +-------------------------------------+-----------+---------+------------------------------------+-------------------------------------------------+
150
- | https://osv.dev/GHSA-v95c-p5hm-xq8f | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
151
- | https://osv.dev/GO-2022-0274 | | | | |
152
- | https://osv.dev/GHSA-f3fp-gc8g-vw66 | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
153
- | https://osv.dev/GHSA-g2j6-57v7-gm8c | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
154
- | https://osv.dev/GHSA-m8cg-xc2p-r3fc | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
155
- | https://osv.dev/GHSA-vpvm-3wq2-2wvm | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
156
- | https://osv.dev/GHSA-p782-xgp4-8hr8 | Go | sys | v0.0.0-20210817142637-7d9622a276b7 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
157
- | https://osv.dev/GO-2022-0493 | | | | |
158
- +-------------------------------------+-----------+---------+------------------------------------+-------------------------------------------------+
147
+ +-------------------------------------+------+------ -----+---------+------------------------------------+-------------------------------------------------+
148
+ | OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
149
+ +-------------------------------------+------+------ -----+---------+------------------------------------+-------------------------------------------------+
150
+ | https://osv.dev/GHSA-v95c-p5hm-xq8f | 6 | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
151
+ | https://osv.dev/GO-2022-0274 | | | | | |
152
+ | https://osv.dev/GHSA-f3fp-gc8g-vw66 | 5.9 | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
153
+ | https://osv.dev/GHSA-g2j6-57v7-gm8c | 6.1 | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
154
+ | https://osv.dev/GHSA-m8cg-xc2p-r3fc | 2.5 | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
155
+ | https://osv.dev/GHSA-vpvm-3wq2-2wvm | 7 | Go | runc | v1.0.1 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
156
+ | https://osv.dev/GHSA-p782-xgp4-8hr8 | 5.3 | Go | sys | v0.0.0-20210817142637-7d9622a276b7 | fixtures/sbom-insecure/postgres-stretch.cdx.xml |
157
+ | https://osv.dev/GO-2022-0493 | | | | | |
158
+ +-------------------------------------+------+------ -----+---------+------------------------------------+-------------------------------------------------+
159
159
` ,
160
160
wantStderr : "" ,
161
161
},
@@ -379,11 +379,11 @@ func TestRun_LockfileWithExplicitParseAs(t *testing.T) {
379
379
Scanned %%/fixtures/locks-insecure/my-package-lock.json file as a package-lock.json and found 1 packages
380
380
Scanning dir ./fixtures/locks-insecure
381
381
Scanned %%/fixtures/locks-insecure/composer.lock file and found 0 packages
382
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
383
- | OSV URL (ID IN BOLD) | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
384
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
385
- | https://osv.dev/GHSA-whgm-jr23-g3j9 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-package-lock.json |
386
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
382
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
383
+ | OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
384
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
385
+ | https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-package-lock.json |
386
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
387
387
` ,
388
388
wantStderr : "" ,
389
389
},
@@ -402,12 +402,12 @@ func TestRun_LockfileWithExplicitParseAs(t *testing.T) {
402
402
Scanned %%/fixtures/locks-insecure/my-yarn.lock file as a yarn.lock and found 1 packages
403
403
Scanning dir ./fixtures/locks-insecure
404
404
Scanned %%/fixtures/locks-insecure/composer.lock file and found 0 packages
405
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
406
- | OSV URL (ID IN BOLD) | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
407
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
408
- | https://osv.dev/GHSA-whgm-jr23-g3j9 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-package-lock.json |
409
- | https://osv.dev/GHSA-whgm-jr23-g3j9 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-yarn.lock |
410
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
405
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
406
+ | OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
407
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
408
+ | https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-package-lock.json |
409
+ | https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-yarn.lock |
410
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
411
411
` ,
412
412
wantStderr : "" ,
413
413
},
@@ -425,12 +425,12 @@ func TestRun_LockfileWithExplicitParseAs(t *testing.T) {
425
425
Scanned %%/fixtures/locks-insecure/my-package-lock.json file as a package-lock.json and found 1 packages
426
426
Scanning dir ./fixtures/locks-insecure
427
427
Scanned %%/fixtures/locks-insecure/composer.lock file and found 0 packages
428
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
429
- | OSV URL (ID IN BOLD) | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
430
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
431
- | https://osv.dev/GHSA-whgm-jr23-g3j9 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-package-lock.json |
432
- | https://osv.dev/GHSA-whgm-jr23-g3j9 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-yarn.lock |
433
- +-------------------------------------+-----------+-----------+---------+----------------------------------------------+
428
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
429
+ | OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
430
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
431
+ | https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-package-lock.json |
432
+ | https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-insecure/my-yarn.lock |
433
+ +-------------------------------------+------+------ -----+-----------+---------+----------------------------------------------+
434
434
` ,
435
435
wantStderr : "" ,
436
436
},
0 commit comments