@@ -1133,7 +1133,6 @@ DESCRIPTION:
11331133
11341134OPTIONS:
11351135 --lockfile string, -L string [ --lockfile string, -L string ] scan package lockfile on this path
1136- --sbom string, -S string [ --sbom string, -S string ] [DEPRECATED] scan sbom file on this path, the sbom file name must follow the relevant spec
11371136 --recursive, -r check subdirectories
11381137 --no-ignore also scan files that would be ignored by .gitignore
11391138 --include-git-root include scanning git root (non-submoduled) repositories
@@ -1298,22 +1297,10 @@ No package sources found, --help for usage information.
12981297---
12991298
13001299[TestCommand/one_file_that_does_not_match_the_supported_sbom_file_names - 1]
1301- Warning: --sbom has been deprecated in favor of -L
13021300
13031301---
13041302
13051303[TestCommand/one_file_that_does_not_match_the_supported_sbom_file_names - 2]
1306- Failed to parse SBOM "./testdata/locks-many/composer.lock": Invalid SBOM filename.
1307- If you believe this is a valid SBOM, make sure the filename follows format per your SBOMs specification.
1308- invalid SBOM filename: ./testdata/locks-many/composer.lock
1309-
1310- ---
1311-
1312- [TestCommand/one_file_that_does_not_match_the_supported_sbom_file_names_using_-L_flag - 1]
1313-
1314- ---
1315-
1316- [TestCommand/one_file_that_does_not_match_the_supported_sbom_file_names_using_-L_flag - 2]
13171304could not determine extractor, requested spdx
13181305
13191306---
@@ -1356,8 +1343,7 @@ No issues found
13561343
13571344---
13581345
1359- [TestCommand/one_specific_supported_sbom_with_duplicate_PURLs - 1]
1360- Warning: --sbom has been deprecated in favor of -L
1346+ [TestCommand/one_specific_supported_sbom_with_duplicate_purls - 1]
13611347Scanned <rootdir>/testdata/sbom-insecure/with-duplicates.cdx.xml file and found 17 packages
13621348Filtered 1 local/unscannable package/s from the scan.
13631349Total 2 packages affected by 3 known vulnerabilities (1 Critical, 2 High, 0 Medium, 0 Low, 0 Unknown) from 1 ecosystem.
@@ -1374,73 +1360,18 @@ Total 2 packages affected by 3 known vulnerabilities (1 Critical, 2 High, 0 Medi
13741360
13751361---
13761362
1377- [TestCommand/one_specific_supported_sbom_with_duplicate_PURLs - 2]
1363+ [TestCommand/one_specific_supported_sbom_with_duplicate_purls - 2]
13781364
13791365---
13801366
1381- [TestCommand/one_specific_supported_sbom_with_duplicate_PURLs_using_-L_flag - 1]
1382- Scanned <rootdir>/testdata/sbom-insecure/with-duplicates.cdx.xml file and found 17 packages
1383- Filtered 1 local/unscannable package/s from the scan.
1384- Total 2 packages affected by 3 known vulnerabilities (1 Critical, 2 High, 0 Medium, 0 Low, 0 Unknown) from 1 ecosystem.
1385- 0 vulnerabilities can be fixed.
1386-
1387-
1388- +---------------------------------------+------+-----------+---------+-----------+---------------+------------------------------------------------+
1389- | OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | FIXED VERSION | SOURCE |
1390- +---------------------------------------+------+-----------+---------+-----------+---------------+------------------------------------------------+
1391- | https://osv.dev/ALPINE-CVE-2025-26519 | 7.0 | Alpine | musl | 1.2.3-r4 | -- | testdata/sbom-insecure/with-duplicates.cdx.xml |
1392- | https://osv.dev/ALPINE-CVE-2018-25032 | 7.5 | Alpine | zlib | 1.2.10-r0 | -- | testdata/sbom-insecure/with-duplicates.cdx.xml |
1393- | https://osv.dev/ALPINE-CVE-2022-37434 | 9.8 | Alpine | zlib | 1.2.10-r0 | -- | testdata/sbom-insecure/with-duplicates.cdx.xml |
1394- +---------------------------------------+------+-----------+---------+-----------+---------------+------------------------------------------------+
1395-
1396- ---
1397-
1398- [TestCommand/one_specific_supported_sbom_with_duplicate_PURLs_using_-L_flag - 2]
1399-
1400- ---
1401-
1402- [TestCommand/one_specific_supported_sbom_with_invalid_PURLs - 1]
1403- Warning: --sbom has been deprecated in favor of -L
1367+ [TestCommand/one_specific_supported_sbom_with_invalid_purls - 1]
14041368Scanned <rootdir>/testdata/sbom-insecure/bad-purls.cdx.xml file and found 15 packages
14051369Filtered 7 local/unscannable package/s from the scan.
14061370No issues found
14071371
14081372---
14091373
1410- [TestCommand/one_specific_supported_sbom_with_invalid_PURLs - 2]
1411-
1412- ---
1413-
1414- [TestCommand/one_specific_supported_sbom_with_invalid_PURLs_using_-L_flag - 1]
1415- Scanned <rootdir>/testdata/sbom-insecure/bad-purls.cdx.xml file and found 15 packages
1416- Filtered 7 local/unscannable package/s from the scan.
1417- No issues found
1418-
1419- ---
1420-
1421- [TestCommand/one_specific_supported_sbom_with_invalid_PURLs_using_-L_flag - 2]
1422-
1423- ---
1424-
1425- [TestCommand/one_specific_supported_sbom_with_vulns - 1]
1426- Warning: --sbom has been deprecated in favor of -L
1427- Scanned <rootdir>/testdata/sbom-insecure/alpine.cdx.xml file and found 15 packages
1428- Filtered 1 local/unscannable package/s from the scan.
1429- Total 2 packages affected by 3 known vulnerabilities (1 Critical, 2 High, 0 Medium, 0 Low, 0 Unknown) from 1 ecosystem.
1430- 0 vulnerabilities can be fixed.
1431-
1432-
1433- +---------------------------------------+------+-----------+---------+-----------+---------------+---------------------------------------+
1434- | OSV URL | CVSS | ECOSYSTEM | PACKAGE | VERSION | FIXED VERSION | SOURCE |
1435- +---------------------------------------+------+-----------+---------+-----------+---------------+---------------------------------------+
1436- | https://osv.dev/ALPINE-CVE-2025-26519 | 7.0 | Alpine | musl | 1.2.3-r4 | -- | testdata/sbom-insecure/alpine.cdx.xml |
1437- | https://osv.dev/ALPINE-CVE-2018-25032 | 7.5 | Alpine | zlib | 1.2.10-r0 | -- | testdata/sbom-insecure/alpine.cdx.xml |
1438- | https://osv.dev/ALPINE-CVE-2022-37434 | 9.8 | Alpine | zlib | 1.2.10-r0 | -- | testdata/sbom-insecure/alpine.cdx.xml |
1439- +---------------------------------------+------+-----------+---------+-----------+---------------+---------------------------------------+
1440-
1441- ---
1442-
1443- [TestCommand/one_specific_supported_sbom_with_vulns - 2]
1374+ [TestCommand/one_specific_supported_sbom_with_invalid_purls - 2]
14441375
14451376---
14461377
0 commit comments