CycloneDX / CycloneDX/sbom-utility

SBOM Utility passing SBOM with unexpected WITH clause

Open
#131 2 comments 0 reactions 0 assignees View on GitHub
enhancement help wanted working as designed
Dominant language
Go
Stars
163
Forks
21
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.