CycloneDX / CycloneDX/cyclonedx-python

extend project URLs -> external references

未关闭
#800 3 条评论 0 个 reaction 已指派 0 人 已被 @arun2dot0 认领 在 GitHub 查看
enhancement good first issue hacktoberfest help wanted
主要语言
Python
星标
390
派生
98
平均合并
2 天 23 小时
30 天内合并 PR
2

描述

## Is your feature request related to a problem? Please describe.

This tool detects project URLs and emits them in the SBOM results as "external references".
The URL types are detected based on patterns - see https://github.com/CycloneDX/cyclonedx-python/blob/721f12d1a5799e9766fd4da79f54fd11c5776824/cyclonedx_py/_internal/utils/cdx.py#L85-L104

it appears that PyPI also documented the way they detect URL types:

It would be great if the PyPI heuristics could be applied, too.

## Describe the solution you'd like

Have the heuristics from PyPI apply to URL type detections, so that emitted external references follow the de facto standards, too.

These heuristics work on the URL name, as well on the URL itself.

## Additional context

PyPI's type classification according to

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。