Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Use annotation and properties in SBOMs for additional details?

未关闭
#1,879 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
25/100
Issue 类型
功能
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
security

调研方向

未指定文件、测试或入口点。检查 SBOM 生成路径,并将项目结果 JSON 与此处所示的 CycloneDX 属性和 SPDX 注释进行比较,然后确定哪些细节属于范围;完成意味着所选细节在生成的 SBOM 中得到一致表示,并由测试覆盖。

由索引模型根据 Issue 内容生成。

描述

enhancement

ScanCode.io will generate a project result file as JSON after each run that includes project details like input sources, settings, package and dependencies found. Other SBOM tools such as grype and trivy are able to store this project result details within the SBOMs they generated using CycloneDX properties and SPDX annotations to store.

It might be a good idea for ScanCode.io to do the same, not yet sure which level of details should be capture in the SBOM.

Example from Trivy below

      "purl": "pkg:apk/alpine/[email protected]?arch=x86_64&distro=3.17.0",
      "properties": [
        {
          "name": "aquasecurity:trivy:LayerDiffID",
          "value": "sha256:ded7a220bb058e28ee3254fbba04ca90b679070424424761a53a043b93b612bf"
        },
        {
          "name": "aquasecurity:trivy:LayerDigest",
          "value": "sha256:c158987b05517b6f2c5913f3acef1f2182a32345a304fe357e3ace5fadcad715"
        },
        {
          "name": "aquasecurity:trivy:PkgID",
          "value": "[email protected]"
        },
        {
          "name": "aquasecurity:trivy:PkgType",
          "value": "alpine"
        },
        {
          "name": "aquasecurity:trivy:SrcName",
          "value": "alpine-baselayout"
        },
        {
          "name": "aquasecurity:trivy:SrcVersion",
          "value": "3.4.0-r0"
        }
主要语言
Python
星标
223
派生
214
平均合并
2 天 3 小时
30 天内合并 PR
13

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aboutcode-org/scancode.io 的其他 Issue

查看 aboutcode-org/scancode.io 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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