@@ -448,6 +448,11 @@ overriding license for package Packagist/league/flysystem/1.0.8 with 0BSD
448
448
| https://osv.dev/GHSA-9f46-5r25-5wfm | 9.8 | Packagist | league/flysystem | 1.0.8 | fixtures/locks-insecure/composer.lock |
449
449
| https://osv.dev/CVE-2025-26519 | | Alpine | musl | 1.2.3-r4 | fixtures/locks-many/alpine.cdx.xml |
450
450
+-------------------------------------+------+-----------+------------------+----------+---------------------------------------+
451
+ +---------+-------------------------+
452
+ | LICENSE | NO. OF PACKAGE VERSIONS |
453
+ +---------+-------------------------+
454
+ | UNKNOWN | 20 |
455
+ +---------+-------------------------+
451
456
+-------------------+-----------+------------------------------------------------+---------+-------------------------------------------------------+
452
457
| LICENSE VIOLATION | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
453
458
+-------------------+-----------+------------------------------------------------+---------+-------------------------------------------------------+
@@ -1448,62 +1453,27 @@ Scanned <rootdir>/fixtures/locks-insecure/osv-scanner-flutter-deps.json file as
1448
1453
1449
1454
[Test_run_Licenses/Licenses_in_summary_mode_json - 1]
1450
1455
{
1451
- "results": [
1452
- {
1453
- "source": {
1454
- "path": "<rootdir>/fixtures/locks-licenses/package-lock.json",
1455
- "type": "lockfile"
1456
- },
1457
- "packages": [
1458
- {
1459
- "package": {
1460
- "name": "babel",
1461
- "version": "6.23.0",
1462
- "ecosystem": "npm"
1463
- },
1464
- "licenses": [
1465
- "MIT"
1466
- ]
1467
- },
1468
- {
1469
- "package": {
1470
- "name": "human-signals",
1471
- "version": "5.0.0",
1472
- "ecosystem": "npm"
1473
- },
1474
- "licenses": [
1475
- "Apache-2.0"
1476
- ]
1477
- },
1478
- {
1479
- "package": {
1480
- "name": "ms",
1481
- "version": "2.1.3",
1482
- "ecosystem": "npm"
1483
- },
1484
- "licenses": [
1485
- "MIT"
1486
- ]
1487
- },
1488
- {
1489
- "package": {
1490
- "name": "type-fest",
1491
- "version": "4.26.1",
1492
- "ecosystem": "npm"
1493
- },
1494
- "licenses": [
1495
- "CC0-1.0 OR MIT"
1496
- ]
1497
- }
1498
- ]
1499
- }
1500
- ],
1456
+ "results": [],
1501
1457
"experimental_config": {
1502
1458
"licenses": {
1503
1459
"summary": true,
1504
1460
"allowlist": []
1505
1461
}
1506
- }
1462
+ },
1463
+ "license_summary": [
1464
+ {
1465
+ "name": "MIT",
1466
+ "count": 2
1467
+ },
1468
+ {
1469
+ "name": "Apache-2.0",
1470
+ "count": 1
1471
+ },
1472
+ {
1473
+ "name": "CC0-1.0 OR MIT",
1474
+ "count": 1
1475
+ }
1476
+ ]
1507
1477
}
1508
1478
1509
1479
---
@@ -1520,6 +1490,13 @@ Scanned <rootdir>/fixtures/locks-licenses/package-lock.json file and found 4 pac
1520
1490
overriding license for package npm/babel/6.23.0 with MIT AND (LGPL-2.1-or-later OR BSD-3-Clause)
1521
1491
overriding license for package npm/human-signals/5.0.0 with LGPL-2.1-only OR MIT OR BSD-3-Clause
1522
1492
overriding license for package npm/ms/2.1.3 with MIT WITH Bison-exception-2.2
1493
+ +----------------+-------------------------+
1494
+ | LICENSE | NO. OF PACKAGE VERSIONS |
1495
+ +----------------+-------------------------+
1496
+ | MIT | 2 |
1497
+ | Apache-2.0 | 1 |
1498
+ | CC0-1.0 OR MIT | 1 |
1499
+ +----------------+-------------------------+
1523
1500
+------------------------------+-----------+---------+---------+-------------------------------------------+
1524
1501
| LICENSE VIOLATION | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
1525
1502
+------------------------------+-----------+---------+---------+-------------------------------------------+
@@ -1538,6 +1515,13 @@ Scanned <rootdir>/fixtures/locks-licenses/package-lock.json file and found 4 pac
1538
1515
overriding license for package npm/babel/6.23.0 with MIT AND (LGPL-2.1-or-later OR BSD-3-Clause))
1539
1516
overriding license for package npm/human-signals/5.0.0 with LGPL-2.1-only OR OR BSD-3-Clause
1540
1517
overriding license for package npm/ms/2.1.3 with MIT WITH (Bison-exception-2.2 AND somethingelse)
1518
+ +----------------+-------------------------+
1519
+ | LICENSE | NO. OF PACKAGE VERSIONS |
1520
+ +----------------+-------------------------+
1521
+ | MIT | 2 |
1522
+ | Apache-2.0 | 1 |
1523
+ | CC0-1.0 OR MIT | 1 |
1524
+ +----------------+-------------------------+
1541
1525
+--------------------------------------------------+-----------+---------------+---------+-------------------------------------------+
1542
1526
| LICENSE VIOLATION | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
1543
1527
+--------------------------------------------------+-----------+---------------+---------+-------------------------------------------+
@@ -1607,13 +1591,27 @@ license MIT WITH (Bison-exception-2.2 AND somethingelse) for package npm/ms/2.1.
1607
1591
],
1608
1592
"experimental_config": {
1609
1593
"licenses": {
1610
- "summary": false ,
1594
+ "summary": true ,
1611
1595
"allowlist": [
1612
1596
"MIT",
1613
1597
"Apache-2.0"
1614
1598
]
1615
1599
}
1616
- }
1600
+ },
1601
+ "license_summary": [
1602
+ {
1603
+ "name": "MIT",
1604
+ "count": 2
1605
+ },
1606
+ {
1607
+ "name": "Apache-2.0",
1608
+ "count": 1
1609
+ },
1610
+ {
1611
+ "name": "CC0-1.0 OR MIT",
1612
+ "count": 1
1613
+ }
1614
+ ]
1617
1615
}
1618
1616
1619
1617
---
@@ -1674,6 +1672,88 @@ Filtered 2 vulnerabilities from output
1674
1672
1675
1673
---
1676
1674
1675
+ [Test_run_Licenses/Show_all_Packages_with_license_summary_in_json - 1]
1676
+ {
1677
+ "results": [
1678
+ {
1679
+ "source": {
1680
+ "path": "<rootdir>/fixtures/locks-licenses/package-lock.json",
1681
+ "type": "lockfile"
1682
+ },
1683
+ "packages": [
1684
+ {
1685
+ "package": {
1686
+ "name": "babel",
1687
+ "version": "6.23.0",
1688
+ "ecosystem": "npm"
1689
+ },
1690
+ "licenses": [
1691
+ "MIT"
1692
+ ]
1693
+ },
1694
+ {
1695
+ "package": {
1696
+ "name": "human-signals",
1697
+ "version": "5.0.0",
1698
+ "ecosystem": "npm"
1699
+ },
1700
+ "licenses": [
1701
+ "Apache-2.0"
1702
+ ]
1703
+ },
1704
+ {
1705
+ "package": {
1706
+ "name": "ms",
1707
+ "version": "2.1.3",
1708
+ "ecosystem": "npm"
1709
+ },
1710
+ "licenses": [
1711
+ "MIT"
1712
+ ]
1713
+ },
1714
+ {
1715
+ "package": {
1716
+ "name": "type-fest",
1717
+ "version": "4.26.1",
1718
+ "ecosystem": "npm"
1719
+ },
1720
+ "licenses": [
1721
+ "CC0-1.0 OR MIT"
1722
+ ]
1723
+ }
1724
+ ]
1725
+ }
1726
+ ],
1727
+ "experimental_config": {
1728
+ "licenses": {
1729
+ "summary": true,
1730
+ "allowlist": []
1731
+ }
1732
+ },
1733
+ "license_summary": [
1734
+ {
1735
+ "name": "MIT",
1736
+ "count": 2
1737
+ },
1738
+ {
1739
+ "name": "Apache-2.0",
1740
+ "count": 1
1741
+ },
1742
+ {
1743
+ "name": "CC0-1.0 OR MIT",
1744
+ "count": 1
1745
+ }
1746
+ ]
1747
+ }
1748
+
1749
+ ---
1750
+
1751
+ [Test_run_Licenses/Show_all_Packages_with_license_summary_in_json - 2]
1752
+ Scanning dir ./fixtures/locks-licenses/package-lock.json
1753
+ Scanned <rootdir>/fixtures/locks-licenses/package-lock.json file and found 4 packages
1754
+
1755
+ ---
1756
+
1677
1757
[Test_run_Licenses/Some_packages_with_ignored_licenses - 1]
1678
1758
Scanning dir ./fixtures/locks-many
1679
1759
Scanned <rootdir>/fixtures/locks-many/Gemfile.lock file and found 1 package
@@ -1712,6 +1792,11 @@ overriding license for package Packagist/league/flysystem/1.0.8 with 0BSD
1712
1792
| https://osv.dev/GHSA-9f46-5r25-5wfm | 9.8 | Packagist | league/flysystem | 1.0.8 | fixtures/locks-insecure/composer.lock |
1713
1793
| https://osv.dev/CVE-2025-26519 | | Alpine | musl | 1.2.3-r4 | fixtures/locks-many/alpine.cdx.xml |
1714
1794
+-------------------------------------+------+-----------+------------------+----------+---------------------------------------+
1795
+ +---------+-------------------------+
1796
+ | LICENSE | NO. OF PACKAGE VERSIONS |
1797
+ +---------+-------------------------+
1798
+ | UNKNOWN | 17 |
1799
+ +---------+-------------------------+
1715
1800
+-------------------+-----------+------------------+----------+---------------------------------------+
1716
1801
| LICENSE VIOLATION | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
1717
1802
+-------------------+-----------+------------------+----------+---------------------------------------+
@@ -1784,12 +1869,26 @@ overriding license for package Packagist/league/flysystem/1.0.8 with 0BSD
1784
1869
],
1785
1870
"experimental_config": {
1786
1871
"licenses": {
1787
- "summary": false ,
1872
+ "summary": true ,
1788
1873
"allowlist": [
1789
1874
"MIT"
1790
1875
]
1791
1876
}
1792
- }
1877
+ },
1878
+ "license_summary": [
1879
+ {
1880
+ "name": "MIT",
1881
+ "count": 2
1882
+ },
1883
+ {
1884
+ "name": "Apache-2.0",
1885
+ "count": 1
1886
+ },
1887
+ {
1888
+ "name": "CC0-1.0 OR MIT",
1889
+ "count": 1
1890
+ }
1891
+ ]
1793
1892
}
1794
1893
1795
1894
---
@@ -1827,12 +1926,26 @@ Scanned <rootdir>/fixtures/locks-licenses/package-lock.json file and found 4 pac
1827
1926
],
1828
1927
"experimental_config": {
1829
1928
"licenses": {
1830
- "summary": false ,
1929
+ "summary": true ,
1831
1930
"allowlist": [
1832
1931
"MIT"
1833
1932
]
1834
1933
}
1835
- }
1934
+ },
1935
+ "license_summary": [
1936
+ {
1937
+ "name": "MIT",
1938
+ "count": 2
1939
+ },
1940
+ {
1941
+ "name": "Apache-2.0",
1942
+ "count": 1
1943
+ },
1944
+ {
1945
+ "name": "CC0-1.0 OR MIT",
1946
+ "count": 1
1947
+ }
1948
+ ]
1836
1949
}
1837
1950
1838
1951
---
@@ -1851,6 +1964,11 @@ Scanned <rootdir>/fixtures/locks-many/package-lock.json file and found 1 package
1851
1964
+-------------------------------------+------+-----------+-----------+---------+---------------------------------------+
1852
1965
| https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-many/package-lock.json |
1853
1966
+-------------------------------------+------+-----------+-----------+---------+---------------------------------------+
1967
+ +------------+-------------------------+
1968
+ | LICENSE | NO. OF PACKAGE VERSIONS |
1969
+ +------------+-------------------------+
1970
+ | Apache-2.0 | 1 |
1971
+ +------------+-------------------------+
1854
1972
1855
1973
---
1856
1974
@@ -1886,6 +2004,11 @@ Scanned <rootdir>/fixtures/locks-many/package-lock.json file and found 1 package
1886
2004
+-------------------------------------+------+-----------+-----------+---------+---------------------------------------+
1887
2005
| https://osv.dev/GHSA-whgm-jr23-g3j9 | 7.5 | npm | ansi-html | 0.0.1 | fixtures/locks-many/package-lock.json |
1888
2006
+-------------------------------------+------+-----------+-----------+---------+---------------------------------------+
2007
+ +------------+-------------------------+
2008
+ | LICENSE | NO. OF PACKAGE VERSIONS |
2009
+ +------------+-------------------------+
2010
+ | Apache-2.0 | 1 |
2011
+ +------------+-------------------------+
1889
2012
+-------------------+-----------+-----------+---------+---------------------------------------+
1890
2013
| LICENSE VIOLATION | ECOSYSTEM | PACKAGE | VERSION | SOURCE |
1891
2014
+-------------------+-----------+-----------+---------+---------------------------------------+
0 commit comments