Include default config licenses (#3900)

* fix: the licenses config was not being carried through causing content to show by default
---------
Signed-off-by: Christopher Phillips <32073428+spiffcs@users.noreply.github.com>
This commit is contained in:
Christopher Angelo Phillips
2025-05-15 16:48:18 +00:00
committed by GitHub
parent b369b02f4f
commit 4f73d35051
3 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ func assertUnknownLicenseContent(required bool) traitAssertion {
for _, pkg := range data.Artifacts {
for _, lic := range pkg.Licenses {
if strings.Contains(lic.SPDXExpression, "UNKNOWN") && required {
if strings.Contains(lic.Value, "sha256") && required {
assert.NotZero(tb, len(lic.Contents))
} else {
assert.Empty(tb, lic.Contents)