CycloneDX/sbom-utility

SBOM Utility passing SBOM with unexpected WITH clause

开放

#131 创建于 2025年6月12日

 (2 条评论) (0 个反应) (0 位负责人)Go (20 个派生)auto 404
enhancementhelp wantedworking as designed

仓库指标

星标
 (155 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

Our SBOM tool created an invalid license in that it was defined as an expression and not as it should have been as a name. (Currently being fixed.

We ran the SBOM Utility against it and it passed the validation, but it would not import into Dependency Track.

The issue is that what is in the expression is not a valid expression. DT correctly picked this up, but the utility passed it.

      {
        "expression": "Apache-2.0 WITH LLVM-exception"
      },
      "licenses": [
        {
          "expression": "Apache-2.0 WITH LLVM-exception"
        }
      ],

In this case, the tool should have thrown a wobbly as it is not valid.

Our work around is to change the license to Apache-2.0-with-LLVM-exception and that forces it to name.

贡献者指南