arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2404.17403cs.SE
收藏

分析 PyPI 和 NPM 库的 GitHub 仓库可访问性

Analyzing the Accessibility of GitHub Repositories for PyPI and NPM Libraries

Alexandros Tsakpinis, Alexander Pretschner

AI总结:

本研究通过 PageRank 算法分析 PyPI 和 NPM 库的 GitHub 仓库可访问性,发现多数库(尤其重要库)可监控,但部分库缺少 URL,建议维护者更新信息。

摘要:

工业应用严重依赖开源软件(OSS)库,这些库提供了各种好处。但是,如果出现漏洞或攻击,且社区因不活跃而未能及时解决问题并发布修复,它们也可能带来重大风险。为了能够监控此类社区的活动,必须能够访问生态系统中各库的全面仓库列表。基于这些仓库,可以监控应用程序的集成库,以观察它们是否得到充分维护。在这项描述性研究中,我们分析了 PyPI 和 NPM 库的 GitHub 仓库可访问性。对于所有可用的库,我们提取分配的仓库 URL、直接依赖关系,并使用 PageRank 算法从库和依赖链的角度全面分析生态系统。对于无效的仓库 URL,我们推导了可能的原因。两个生态系统在 GitHub 仓库 URL 的可访问性上表现出差异,具体取决于所分析库的 PageRank 得分。对于单个库,高达 73.8% 的 PyPI 库和高达 69.4% 的 NPM 库具有仓库 URL。在依赖链中,高达 80.1% 的 PyPI 库具有 URL,而 NPM 高达 81.1%。这意味着大多数库,尤其是那些重要性日益增加的库,可以在 GitHub 上进行监控。无效仓库 URL 的最常见原因之一是根本没有分配 URL,这在 PyPI 中高达 17.9%,在 NPM 中高达 39.6%。包维护者应解决此问题并更新仓库信息,以便能够监控其库。

英文摘要:

Industrial applications heavily rely on open-source software (OSS) libraries, which provide various benefits. But, they can also present a substantial risk if a vulnerability or attack arises and the community fails to promptly address the issue and release a fix due to inactivity. To be able to monitor the activities of such communities, a comprehensive list of repositories for the libraries of an ecosystem must be accessible. Based on these repositories, integrated libraries of an application can be monitored to observe whether they are adequately maintained. In this descriptive study, we analyze the accessibility of GitHub repositories for PyPI and NPM libraries. For all available libraries, we extract assigned repository URLs, direct dependencies and use the page rank algorithm to comprehensively analyze the ecosystems from a library and dependency chain perspective. For invalid repository URLs, we derive potential reasons. Both ecosystems show varying accessibility to GitHub repository URLs, depending on the page rank score of the analyzed libraries. For individual libraries, up to 73.8% of PyPI and up to 69.4% of NPM libraries have repository URLs. Within dependency chains, up to 80.1% of PyPI libraries have URLs, while up to 81.1% for NPM. That means, most libraries, especially the ones of increasing importance, can be monitored on GitHub. Among the most common reasons for invalid repository URLs is no URLs being assigned at all, which amounts up to 17.9% for PyPI and up to 39.6% for NPM. Package maintainers should address this issue and update the repository information to enable monitoring of their libraries.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑